You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I set the timeout as usual but in a scenario when the network is connected but the internet is not available to complete a DNS lookup, there are no callbacks for a quite amount of time. How do we handle this?
I am using ReactiveNetwork.checkInternetConnectivity().
To Reproduce
Steps to reproduce the behavior:
Connect to a wifi source which doesn't have a working connection.
Start the app and observe.
The text was updated successfully, but these errors were encountered:
I am not sure just guessing. It's just what others are saying.
Inside isConnected(),
First we check the address InetAddress.getByName() from hostname.
Use the above in a thread and terminate that thread after the desired timeout (by user). If the timeout has been reached, send an error callback else to proceed.
Supply that InetAddress to the URL class instead of the original hostname (by user). So no extra lookups.
Describe the bug
I set the timeout as usual but in a scenario when the network is connected but the internet is not available to complete a DNS lookup, there are no callbacks for a quite amount of time. How do we handle this?
I am using
ReactiveNetwork.checkInternetConnectivity()
.To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: