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

Unified Diff: net/tools/quic/quic_simple_server_stream.cc

Issue 2424953002: Move allow_bidirectional_data_ from QuicSpdyClientStream to QuicSpdyStream, and use in (test-only) … (Closed)
Patch Set: Created 4 years, 2 months 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 | « net/quic/core/quic_spdy_stream.cc ('k') | net/tools/quic/quic_spdy_client_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_server_stream.cc
diff --git a/net/tools/quic/quic_simple_server_stream.cc b/net/tools/quic/quic_simple_server_stream.cc
index 685955f3c616e588c734a2cca4b58fe1719eec11..b9dd897fcd349605144c3c8841175d6a46ada551 100644
--- a/net/tools/quic/quic_simple_server_stream.cc
+++ b/net/tools/quic/quic_simple_server_stream.cc
@@ -234,9 +234,7 @@ void QuicSimpleServerStream::SendHeadersAndBodyAndTrailers(
SpdyHeaderBlock response_headers,
StringPiece body,
SpdyHeaderBlock response_trailers) {
- // This server only supports SPDY and HTTP, and neither handles bidirectional
- // streaming.
- if (!reading_stopped()) {
+ if (!allow_bidirectional_data() && !reading_stopped()) {
StopReading();
}
« no previous file with comments | « net/quic/core/quic_spdy_stream.cc ('k') | net/tools/quic/quic_spdy_client_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698