internet_connection_checker_plus
internet_connection_checker_plus copied to clipboard
TimeoutException occurs when debugger halts during HTTP request
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