set connect timeout for polling
This commit is contained in:
@@ -168,6 +168,8 @@ public class PollingXHR extends Polling {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
xhr.setConnectTimeout(10000);
|
||||||
|
|
||||||
if (xhr instanceof HttpsURLConnection && this.sslContext != null) {
|
if (xhr instanceof HttpsURLConnection && this.sslContext != null) {
|
||||||
((HttpsURLConnection)xhr).setSSLSocketFactory(this.sslContext.getSocketFactory());
|
((HttpsURLConnection)xhr).setSSLSocketFactory(this.sslContext.getSocketFactory());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user