Commit c300d4ab authored by Carlos Garcia Campos's avatar Carlos Garcia Campos
Browse files

io-http2: use nghttp2_session_check_request_allowed to check if reusable

If we can't make new requests the connection is not reusable.
nghttp2_session_check_request_allowed() already returns FALSE if want
read and want write both return 0.
parent 82fc95a0
Pipeline #286024 failed with stages
in 5 minutes and 4 seconds
......@@ -1044,7 +1044,7 @@ soup_client_message_io_http2_is_reusable (SoupClientMessageIO *iface)
SoupClientMessageIOHTTP2 *io = (SoupClientMessageIOHTTP2 *)iface;
if (!nghttp2_session_want_write (io->session) && !nghttp2_session_want_read (io->session))
if (!nghttp2_session_check_request_allowed (io->session))
return FALSE;
return !io->is_shutdown;
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