| Index: net/tools/quic/quic_client.cc
|
| diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
|
| index 74874d71b3b0122d3af0e0100ce63a83b32e5fdf..6264be0471b38445151fd9ceb2b2fc7c5622da5a 100644
|
| --- a/net/tools/quic/quic_client.cc
|
| +++ b/net/tools/quic/quic_client.cc
|
| @@ -235,6 +235,10 @@ void QuicClient::SendRequestsAndWaitForResponse(
|
| headers.SetRequestFirstlineFromStringPieces("GET", args[i], "HTTP/1.1");
|
| QuicSpdyClientStream* stream = CreateReliableClientStream();
|
| DCHECK(stream != nullptr);
|
| + if (stream == nullptr) {
|
| + LOG(ERROR) << "stream creation failed!";
|
| + break;
|
| + }
|
| stream->SendRequest(headers, "", true);
|
| stream->set_visitor(this);
|
| }
|
| @@ -317,6 +321,10 @@ bool QuicClient::connected() const {
|
| session_->connection()->connected();
|
| }
|
|
|
| +bool QuicClient::goaway_received() const {
|
| + return session_ != nullptr && session_->goaway_received();
|
| +}
|
| +
|
| QuicConnectionId QuicClient::GenerateConnectionId() {
|
| return QuicRandom::GetInstance()->RandUint64();
|
| }
|
|
|