diff options
-rw-r--r-- | net/http/http_basic_stream.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/http/http_basic_stream.cc b/net/http/http_basic_stream.cc index 729e9c3..41ace61 100644 --- a/net/http/http_basic_stream.cc +++ b/net/http/http_basic_stream.cc @@ -59,7 +59,9 @@ void HttpBasicStream::Close(bool not_reusable) { HttpStream* HttpBasicStream::RenewStreamForAuth() { DCHECK(IsResponseBodyComplete()); DCHECK(!parser()->IsMoreDataBuffered()); - // TODO(ricea): Why delete the parser here? crbug.com/311917 + // The HttpStreamParser object still has a pointer to the connection. Just to + // be extra-sure it doesn't touch the connection again, delete it here rather + // than leaving it until the destructor is called. state_.DeleteParser(); return new HttpBasicStream(state_.ReleaseConnection().release(), state_.using_proxy()); |