Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1132)

Unified Diff: components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java

Issue 1984723002: Support setReadTimeout in CronetHttpURLConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/cronet/android/java/src/org/chromium/net/urlconnection/MessageLoop.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java
diff --git a/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java b/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java
index 1575a696d504f4efa0b8813d9a2f5ffd485d9304..6b421d7de42d5a34a217bb94702406018869ade2 100644
--- a/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java
+++ b/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java
@@ -405,7 +405,7 @@ public class CronetHttpURLConnection extends HttpURLConnection {
*/
void getMoreData(ByteBuffer byteBuffer) throws IOException {
mRequest.read(byteBuffer);
- mMessageLoop.loop();
+ mMessageLoop.loop(getReadTimeout());
}
/**
@@ -516,7 +516,7 @@ public class CronetHttpURLConnection extends HttpURLConnection {
if (!mHasResponse) {
startRequest();
// Blocks until onResponseStarted or onFailed is called.
- mMessageLoop.loop();
+ mMessageLoop.loop(getConnectTimeout());
rohitagr 2016/05/16 17:21:56 I don't think this is safe: as I understand it, th
xunjieli 2016/05/16 17:28:10 Yea, although the specs is pretty vague about what
kapishnikov 2016/05/17 20:33:24 Following up the Helen's PS4 change. I think the g
mHasResponse = true;
}
checkHasResponse();
« no previous file with comments | « no previous file | components/cronet/android/java/src/org/chromium/net/urlconnection/MessageLoop.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698