internet_connection_checker_plus icon indicating copy to clipboard operation
internet_connection_checker_plus copied to clipboard

TimeoutException occurs when debugger halts during HTTP request

Open sikandernoori opened this issue 8 months ago • 1 comments

Description:

In debug mode, when checking for InternetStatus, if execution is paused by a debugger after the HTTP request is sent but before the response is received, and the request timeout elapses during this pause, the plugin throws a TimeoutException.

This leads to false negatives in connectivity checks during debugging sessions, which makes it harder to test features that depend on accurate internet status.

Expected Behavior:

There should be a mechanism to distinguish between a real timeout and a timeout caused due to debugger-induced pause, to prevent false false results.

Suggested Improvement:

Consider adding support for:

Custom response timeout handling during debug sessions

Or a hook/configuration to allow developers to ignore TimeoutException if a debugger is attached

This would make the plugin more robust for development and debugging.

Environment:

Plugin: internet_connection_checker_plus

Flutter: 3.29.0

Platform: Android/iOS/Web

Debug mode

sikandernoori avatar May 27 '25 21:05 sikandernoori

Steps to reproduce in example app:

https://github.com/user-attachments/assets/7304a84d-4e42-4462-8f80-abeecc5ae7e0

sikandernoori avatar May 27 '25 22:05 sikandernoori

Any update❓

LavanDroid avatar Jun 17 '25 08:06 LavanDroid

Can you try changing Debug my code + packages + SDK to just Debug my code in VSC settings and report what happens.

OutdatedGuy avatar Sep 24 '25 19:09 OutdatedGuy

@OutdatedGuy It's been almost 4 months and I am No longer interested in pursuing this matter. You can close this issue or someone else can take up.

sikandernoori avatar Sep 24 '25 19:09 sikandernoori