Commit 032edf88 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos
Browse files

io-http2: connection is reusable if it's open

parent 52125ed8
......@@ -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)
{
......
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