Chromium Code Reviews
Description[Cronet] Mark request as complete when OutputStream fails
When consumer specifies a chunked upload or a fixed stream upload, Cronet's
HttpURLConnection starts the request right away. If an error happens, we will
surface that error as an IOException to consumer. However, if the consumer
tries to call any other API (like getResponseCode(), getResponseMessage())
afterwards, we will spin up the message loop and wait forever.
This CL marks the request as complete if an error occurred in upload, so
getResponseCode() etc. do not spin up the message loop to wait for response.
R=pauljensen@chromium.org
BUG=630664
Committed: https://crrev.com/7fbfe4fe8ff451d1f65ac574a2304d383aaeec16
Cr-Commit-Position: refs/heads/master@{#407468}
Patch Set 1 #
Total comments: 4
Patch Set 2 : address comments #
Total comments: 1
Messages
Total messages: 16 (6 generated)
|