mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-25 13:31:55 +00:00
Opt out of default OkHttp read timeout for indefinitely blocking HTTP requests
This commit is contained in:
1 parent
37cde22a55
commit
636c1ceb26
1 file changed
+1
@@ -100,6 +100,7 @@ public class NvHTTP {
|
||||
|
||||
httpClient.setConnectionPool(new ConnectionPool(0, 1));
|
||||
httpClient.setHostnameVerifier(hv);
|
||||
httpClient.setReadTimeout(0, TimeUnit.MILLISECONDS);
|
||||
httpClient.setConnectTimeout(CONNECTION_TIMEOUT, TimeUnit.MILLISECONDS);
|
||||
|
||||
httpClientWithReadTimeout = httpClient.clone();
|
||||
|
||||
Reference in new issue
Block a user