mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 11:03:01 +00:00
Opt out of default OkHttp read timeout for indefinitely blocking HTTP requests
This commit is contained in:
parent
37cde22a55
commit
636c1ceb26
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user