Commit a9ba0091 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Log error_code when submitting RST_STREAM

parent 8e9f08f8
......@@ -710,7 +710,9 @@ int Http2Upstream::rst_stream(Downstream *downstream,
{
if(LOG_ENABLED(INFO)) {
ULOG(INFO, this) << "RST_STREAM stream_id="
<< downstream->get_stream_id();
<< downstream->get_stream_id()
<< " with error_code="
<< error_code;
}
int rv;
rv = nghttp2_submit_rst_stream(session_, downstream->get_stream_id(),
......
......@@ -582,6 +582,12 @@ int SpdySession::submit_rst_stream(SpdyDownstreamConnection *dconn,
nghttp2_error_code error_code)
{
assert(state_ == CONNECTED);
if(LOG_ENABLED(INFO)) {
SSLOG(INFO, this) << "RST_STREAM stream_id="
<< stream_id
<< " with error_code="
<< error_code;
}
int rv = nghttp2_submit_rst_stream(session_, stream_id, error_code);
if(rv != 0) {
SSLOG(FATAL, this) << "nghttp2_submit_rst_stream() failed: "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment