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
Steps to reproduce in example app:
https://github.com/user-attachments/assets/7304a84d-4e42-4462-8f80-abeecc5ae7e0
Any update❓
Can you try changing Debug my code + packages + SDK to just Debug my code in VSC settings and report what happens.
@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.