| Index: net/tools/quic/quic_server_session.cc
|
| diff --git a/net/tools/quic/quic_server_session.cc b/net/tools/quic/quic_server_session.cc
|
| index 92aacfddc588b4503ccae71bfbba55aa26d04959..7fa5804d0a77b3940fbff7302ecdf247a21fb5f6 100644
|
| --- a/net/tools/quic/quic_server_session.cc
|
| +++ b/net/tools/quic/quic_server_session.cc
|
| @@ -195,12 +195,14 @@ bool QuicServerSession::ShouldCreateIncomingDynamicStream(QuicStreamId id) {
|
| connection()->SendConnectionClose(QUIC_INVALID_STREAM_ID);
|
| return false;
|
| }
|
| - if (GetNumOpenStreams() >= get_max_open_streams()) {
|
| - DVLOG(1) << "Failed to create a new incoming stream with id:" << id
|
| - << " Already " << GetNumOpenStreams() << " streams open (max "
|
| - << get_max_open_streams() << ").";
|
| - connection()->SendConnectionClose(QUIC_TOO_MANY_OPEN_STREAMS);
|
| - return false;
|
| + if (!FLAGS_exact_stream_id_delta) {
|
| + if (GetNumOpenStreams() >= get_max_open_streams()) {
|
| + DVLOG(1) << "Failed to create a new incoming stream with id:" << id
|
| + << " Already " << GetNumOpenStreams() << " streams open (max "
|
| + << get_max_open_streams() << ").";
|
| + connection()->SendConnectionClose(QUIC_TOO_MANY_OPEN_STREAMS);
|
| + return false;
|
| + }
|
| }
|
| return true;
|
| }
|
|
|