[libsoup] io-http2: connection is reusable if it's open
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] io-http2: connection is reusable if it's open
- Date: Thu, 27 May 2021 08:41:20 +0000 (UTC)
commit 032edf88bf3cd53868dd21a6733a6ccc6968e6a2
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Thu May 27 09:20:10 2021 +0200
io-http2: connection is reusable if it's open
libsoup/http2/soup-client-message-io-http2.c | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/libsoup/http2/soup-client-message-io-http2.c b/libsoup/http2/soup-client-message-io-http2.c
index 231d7c16..1c35f06d 100644
--- a/libsoup/http2/soup-client-message-io-http2.c
+++ b/libsoup/http2/soup-client-message-io-http2.c
@@ -1040,7 +1040,7 @@ soup_client_message_io_http2_is_paused (SoupClientMessageIO *iface,
}
static gboolean
-soup_client_message_io_http2_is_reusable (SoupClientMessageIO *iface)
+soup_client_message_io_http2_is_open (SoupClientMessageIO *iface)
{
SoupClientMessageIOHTTP2 *io = (SoupClientMessageIOHTTP2 *)iface;
@@ -1050,6 +1050,12 @@ soup_client_message_io_http2_is_reusable (SoupClientMessageIO *iface)
return !io->is_shutdown;
}
+static gboolean
+soup_client_message_io_http2_is_reusable (SoupClientMessageIO *iface)
+{
+ return soup_client_message_io_http2_is_open (iface);
+}
+
static gboolean
message_source_check (GSource *source)
{
@@ -1454,14 +1460,6 @@ soup_client_message_io_http2_run_until_read_async (SoupClientMessageIO *iface,
io_run_until_read_async (msg, task);
}
-static gboolean
-soup_client_message_io_http2_is_open (SoupClientMessageIO *iface)
-{
- SoupClientMessageIOHTTP2 *io = (SoupClientMessageIOHTTP2 *)iface;
-
- return nghttp2_session_want_read (io->session) || nghttp2_session_want_write (io->session);
-}
-
static void
soup_client_message_io_http2_destroy (SoupClientMessageIO *iface)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]