[Cronet] Fix crash in net::HttpProtocolHandlerCore in bad network conditions if HTTPBody is used.
- Keep NSURLRequest.HTTPBodyStream in HttpProtocolHandlerCore::http_body_stream_ to work around system behavior of returning new NSStream object for each call if NSURLRequest.HTTPBody is set. - Initialize |http_body_stream_delegate_| to nullptr if request doesn't have a body. - Rename HttpProtocolHandlerCore::http_body_stream_[delegate_] member variables for consistency. TBR=dschinazi@chromium.org Bug: 979324 Change-Id: Ibc0b5d4226c3e517f314e66fa305a995b54cc008 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1778407 Commit-Queue: Misha Efimov <mef@chromium.org> Reviewed-by:Mark Cogan <marq@chromium.org> Cr-Commit-Position: refs/heads/master@{#692833}
Showing
Please register or sign in to comment