Commit 4041d1eb authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Don't send ALTSVC if stream is closing

parent 81f81e6b
......@@ -1706,6 +1706,9 @@ static int session_predicate_altsvc_send(nghttp2_session *session,
if (stream == NULL) {
return NGHTTP2_ERR_STREAM_CLOSED;
}
if (stream->state == NGHTTP2_STREAM_CLOSING) {
return NGHTTP2_ERR_STREAM_CLOSING;
}
return 0;
}
......
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