Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
networking: Fix requests failing when turning network off and on (fac…
…ebook#19709). This bug is probably actually a bug in OkHttp: square/okhttp#4079 Both issues linked above contain extensive details about the issue, its likely origins and how to reproduce it. A short summary of the issue and the fix in this commit: On Android, disconnecting from the network somehow corrupts the idle connections in okhttp clients. New requests made over these clients fail. This commit works around that bug by clearing the idle connection pool when Android disconnects from the network.
- Loading branch information