mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Opt out of default OkHttp read timeout for indefinitely blocking HTTP requests
This commit is contained in:
@@ -100,6 +100,7 @@ public class NvHTTP {
|
|||||||
|
|
||||||
httpClient.setConnectionPool(new ConnectionPool(0, 1));
|
httpClient.setConnectionPool(new ConnectionPool(0, 1));
|
||||||
httpClient.setHostnameVerifier(hv);
|
httpClient.setHostnameVerifier(hv);
|
||||||
|
httpClient.setReadTimeout(0, TimeUnit.MILLISECONDS);
|
||||||
httpClient.setConnectTimeout(CONNECTION_TIMEOUT, TimeUnit.MILLISECONDS);
|
httpClient.setConnectTimeout(CONNECTION_TIMEOUT, TimeUnit.MILLISECONDS);
|
||||||
|
|
||||||
httpClientWithReadTimeout = httpClient.clone();
|
httpClientWithReadTimeout = httpClient.clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user