You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2015/04/22 18:55:22 UTC

[03/12] trafficserver git commit: TS-3519: HTTP/2 seeing a lot of GOAWAY frames being sent Fixed where stream could be dereferenced as a NULL pointer

TS-3519: HTTP/2 seeing a lot of GOAWAY frames being sent
Fixed where stream could be dereferenced as a NULL pointer

(cherry picked from commit 43a4086ca17bdd9aab6db8f914898aa726568f52)


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/15879950
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/15879950
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/15879950

Branch: refs/heads/5.3.x
Commit: 15879950dd375cf28359330e02f9114a1d211eb3
Parents: 71a89e4
Author: Bryan Call <bc...@apache.org>
Authored: Thu Apr 16 22:02:44 2015 -0500
Committer: Phil Sorber <so...@apache.org>
Committed: Fri Apr 17 07:38:42 2015 -0600

----------------------------------------------------------------------
 proxy/http2/Http2ConnectionState.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/15879950/proxy/http2/Http2ConnectionState.cc
----------------------------------------------------------------------
diff --git a/proxy/http2/Http2ConnectionState.cc b/proxy/http2/Http2ConnectionState.cc
index 2af2d6a..3322d6d 100644
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -304,9 +304,9 @@ rcv_rst_stream_frame(Http2ClientSession &cs, Http2ConnectionState &cstate, const
     return HTTP2_ERROR_PROTOCOL_ERROR;
   }
 
-  DebugSsn(&cs, "http2_cs", "[%" PRId64 "] RST_STREAM: Stream ID: %u, Error Code: %u)", cs.connection_id(), stream->get_id(),
-           rst_stream.error_code);
   if (stream != NULL) {
+    DebugSsn(&cs, "http2_cs", "[%" PRId64 "] RST_STREAM: Stream ID: %u, Error Code: %u)", cs.connection_id(), stream->get_id(),
+             rst_stream.error_code);
     cstate.delete_stream(stream);
   }