[libsoup/wip/http2] fixup! Add initial HTTP2 backend
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/http2] fixup! Add initial HTTP2 backend
- Date: Fri, 14 May 2021 16:34:13 +0000 (UTC)
commit a1e566c5178310c9eb17c32df9957776182dc56e
Author: Patrick Griffis <pgriffis igalia com>
Date: Fri May 14 11:34:06 2021 -0500
fixup! Add initial HTTP2 backend
libsoup/http2/soup-client-message-io-http2.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libsoup/http2/soup-client-message-io-http2.c b/libsoup/http2/soup-client-message-io-http2.c
index c5a3f857..91e10d13 100644
--- a/libsoup/http2/soup-client-message-io-http2.c
+++ b/libsoup/http2/soup-client-message-io-http2.c
@@ -968,7 +968,9 @@ soup_client_message_io_http2_is_reusable (SoupClientMessageIO *iface)
{
SoupClientMessageIOHTTP2 *io = (SoupClientMessageIOHTTP2 *)iface;
- /* TODO: This logic is probably incomplete */
+ if (!nghttp2_session_want_write (io->session) && !nghttp2_session_want_read (io->session))
+ return FALSE;
+
return !io->is_shutdown;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]