-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requests delayed, first app-usage after connecting to VPN #1747
Comments
It's likely that the connection pool is stale. We need to detect the network change and automatically evict those connections. If you'd like a workaround, if you can detect the VPN change then you should clear the connection pool. |
Thanks for the quick response. For the time being, I just disabled the usage of okhttp with retrofit. But On Sunday, July 12, 2015, Jesse Wilson notifications@github.com wrote:
Q: Why is this email five sentences or less? |
|
my connection pool is null |
Okay, I initialize the ConnectionPool to the default at start.. then cleared it after every connection, disconnection.. and it worked:
|
There is no point of keeping the connection pool if you are going to simply evict it every time. If you don't want the pool, you're better off just setting the system property.
You can add this to the onCreate of your application class. |
Tracking as #1747 |
Jesse, 1747 is the current issue. On Saturday, August 1, 2015, Jesse Wilson notifications@github.com wrote:
Q: Why is this email five sentences or less? |
Ha! thanks @AlmogBaku. Meant to say tracking as #1780. |
Steps to reproduce:
Results:
Additional info:
The text was updated successfully, but these errors were encountered: