[libsoup/carlosgc/http2-io-errors: 5/9] http2: finish the async close task in case of IO error




commit 0b76c0a9e023675f4824ec2a686dddcb49ebbb08
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Mon Aug 29 11:33:06 2022 +0200

    http2: finish the async close task in case of IO error

 libsoup/http2/soup-client-message-io-http2.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/libsoup/http2/soup-client-message-io-http2.c b/libsoup/http2/soup-client-message-io-http2.c
index 0ccdf878..c5407bbe 100644
--- a/libsoup/http2/soup-client-message-io-http2.c
+++ b/libsoup/http2/soup-client-message-io-http2.c
@@ -180,6 +180,11 @@ set_io_error (SoupClientMessageIOHTTP2 *io,
                 io->error = error;
         else
                 g_error_free (error);
+
+        if (io->close_task && !io->goaway_sent) {
+                g_task_return_boolean (io->close_task, TRUE);
+                g_clear_object (&io->close_task);
+        }
 }
 
 static void


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