Index: net/quic/quic_http_stream.cc |
diff --git a/net/quic/quic_http_stream.cc b/net/quic/quic_http_stream.cc |
index 803f84c7b54a8848281f520454d7d26c7f630545..f3ca047b207d91076617eec83e71e401069d796a 100644 |
--- a/net/quic/quic_http_stream.cc |
+++ b/net/quic/quic_http_stream.cc |
@@ -668,8 +668,12 @@ int QuicHttpStream::DoReadRequestBody() { |
int QuicHttpStream::DoReadRequestBodyComplete(int rv) { |
// |rv| is the result of read from the request body from the last call to |
// DoSendBody(). |
- if (rv < 0) |
+ if (rv < 0) { |
+ if (!callback_.is_null()) |
+ DoCallback(rv); |
mmenke
2016/06/02 15:17:58
I don't think you need to invoke the callback here
maksims (do not use this acc)
2016/06/03 09:40:31
Done.
|
+ stream_->Reset(QUIC_ERROR_PROCESSING_STREAM); |
return rv; |
+ } |
// If the stream is already closed, don't continue. |
if (!stream_) |