Chromium Code Reviews| 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(); |