[libsoup/libsoup-3-0] http2: set the IO error for sync requests too



commit 1d106c00c4076a6a390f1133026f1b400080cdc2
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Mon Aug 29 11:35:02 2022 +0200

    http2: set the IO error for sync requests too

 libsoup/http2/soup-client-message-io-http2.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libsoup/http2/soup-client-message-io-http2.c b/libsoup/http2/soup-client-message-io-http2.c
index 4a2495e6..68fb97c1 100644
--- a/libsoup/http2/soup-client-message-io-http2.c
+++ b/libsoup/http2/soup-client-message-io-http2.c
@@ -1632,11 +1632,13 @@ io_run_until (SoupClientMessageIOHTTP2 *io,
                 progress = io_run (data, cancellable, &my_error);
 
         if (my_error) {
-                g_propagate_error (error, my_error);
-                g_object_unref (msg);
-                return FALSE;
+                io->is_shutdown = TRUE;
+                set_io_error (io, my_error);
         }
 
+        if (io->error && !data->error)
+                data->error = g_error_copy (io->error);
+
        if (data->error) {
                 g_propagate_error (error, g_steal_pointer (&data->error));
                g_object_unref (msg);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]