diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2021-05-15 16:22:59 +0200 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2021-05-16 12:31:03 +0000 |
commit | 11bd65c9cb66a84019ea17dec02ba170094355dc (patch) | |
tree | 72100714de04b5c85d111688f33b55785da0b710 /libsoup/soup-client-input-stream.c | |
parent | 04624568cb1cddf642115502d6dfe32e9e7be6b7 (diff) | |
download | libsoup-11bd65c9cb66a84019ea17dec02ba170094355dc.tar.gz |
io-http1: split SoupClientMessageIOHTTP1 in two
Move the message io to SoupMessageIOHTTP1 struct. This is how http2 IO
will work, but in this case there's only one message io. This allows to
create the SoupClientMessageIO earlier in SoupConnection and we will
move http1 specific code to the interface implementation.
Diffstat (limited to 'libsoup/soup-client-input-stream.c')
-rw-r--r-- | libsoup/soup-client-input-stream.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsoup/soup-client-input-stream.c b/libsoup/soup-client-input-stream.c index e32b90f8..098cda5e 100644 --- a/libsoup/soup-client-input-stream.c +++ b/libsoup/soup-client-input-stream.c @@ -241,8 +241,12 @@ soup_client_input_stream_close_async (GInputStream *stream, g_task_set_priority (task, priority); if (close_async_ready (priv->msg, task) == G_SOURCE_CONTINUE) { + /* When SoupClientInputStream is created we always have a body input stream, + * and we finished writing, so it's safe to pass NULL for the streams + */ source = soup_message_io_data_get_source ((SoupMessageIOData *)soup_message_get_io_data (priv->msg), G_OBJECT (priv->msg), + NULL, NULL, cancellable, NULL, NULL); g_task_attach_source (task, source, (GSourceFunc) close_async_ready); |