| Index: net/quic/core/quic_session.cc
|
| diff --git a/net/quic/core/quic_session.cc b/net/quic/core/quic_session.cc
|
| index 3f8e578d750ce4a709b3f0658a0b4b8a44e444ce..2b526494b9525f3e791e4b7f0c2895b7a970c6df 100644
|
| --- a/net/quic/core/quic_session.cc
|
| +++ b/net/quic/core/quic_session.cc
|
| @@ -12,6 +12,7 @@
|
| #include "net/quic/core/quic_connection.h"
|
| #include "net/quic/core/quic_flags.h"
|
| #include "net/quic/core/quic_flow_controller.h"
|
| +#include "net/quic/platform/api/quic_str_cat.h"
|
|
|
| using base::IntToString;
|
| using base::StringPiece;
|
| @@ -676,10 +677,9 @@ bool QuicSession::MaybeIncreaseLargestPeerStreamId(
|
| << " streams available, which would become "
|
| << new_num_available_streams << ", which exceeds the limit "
|
| << MaxAvailableStreams() << ".";
|
| - string details = IntToString(new_num_available_streams) + " above " +
|
| - IntToString(MaxAvailableStreams());
|
| connection()->CloseConnection(
|
| - QUIC_TOO_MANY_AVAILABLE_STREAMS, details.c_str(),
|
| + QUIC_TOO_MANY_AVAILABLE_STREAMS,
|
| + QuicStrCat(new_num_available_streams, " above ", MaxAvailableStreams()),
|
| ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET);
|
| return false;
|
| }
|
|
|