Don't send ALTSVC if stream is closing
This commit is contained in:
parent
81f81e6b70
commit
4041d1eb26
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue