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
When the underlying network changes from 3G to Wi-Fi, Wi-Fi to 3G, or the 3G signal is lost (say when you get in an elevator), if you are in the middle of executing a request, the send method hangs forever, no timeout, no retry logic, just hangs forever. Any ideas on how to handle this?
The text was updated successfully, but these errors were encountered:
There is a timeout. It's 30 seconds by default, and you can set it to any value you like. Globally do it via BetterHttp.setSocketTimeout(), and per-request using request.withTimeout().
It simply forwards to Apache HttpClient's timeout parameters.
Also, make sure you require android.permission.ACCESS_NETWORK_STATE in your manifest file. This makes sure that BetterHttp's ConnectionChanged receiver is triggered, which makes sure to update proxy settings that your carrier may require when failing over from Wi-Fi to 3G.
When the underlying network changes from 3G to Wi-Fi, Wi-Fi to 3G, or the 3G signal is lost (say when you get in an elevator), if you are in the middle of executing a request, the send method hangs forever, no timeout, no retry logic, just hangs forever. Any ideas on how to handle this?
The text was updated successfully, but these errors were encountered: