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

Unified Diff: net/spdy/bidirectional_stream_spdy_impl.h

Issue 2462463002: Make net::BidirectionalStream handle RST_STREAM_NO_ERROR (Closed)
Patch Set: Fix tests Created 4 years, 1 month 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 | net/spdy/bidirectional_stream_spdy_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/bidirectional_stream_spdy_impl.h
diff --git a/net/spdy/bidirectional_stream_spdy_impl.h b/net/spdy/bidirectional_stream_spdy_impl.h
index 1e5e782bbbf8ffbab4c0f71613a6a81d23016696..1e3f6e7a0b903071dd77a2be5fb222bd9ea6002c 100644
--- a/net/spdy/bidirectional_stream_spdy_impl.h
+++ b/net/spdy/bidirectional_stream_spdy_impl.h
@@ -78,6 +78,9 @@ class NET_EXPORT_PRIVATE BidirectionalStreamSpdyImpl
void ScheduleBufferedRead();
void DoBufferedRead();
bool ShouldWaitForMoreBufferedData() const;
+ // Handles the case where stream is closed when SendData()/SendvData() is
+ // called. Return true if stream is closed.
+ bool MaybeHandleStreamClosedInSendData();
const base::WeakPtr<SpdySession> spdy_session_;
const BidirectionalStreamRequestInfo* request_info_;
@@ -96,6 +99,12 @@ class NET_EXPORT_PRIVATE BidirectionalStreamSpdyImpl
scoped_refptr<IOBuffer> read_buffer_;
int read_buffer_len_;
+ // Whether client has written the end of stream flag in request headers or
+ // in SendData()/SendvData().
+ bool written_end_of_stream_;
+ // Whether a SendData() or SendvData() is pending.
+ bool write_pending_;
+
// Whether OnClose has been invoked.
bool stream_closed_;
// Status reported in OnClose.
« no previous file with comments | « no previous file | net/spdy/bidirectional_stream_spdy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698