Bug#1088985: Patch

rastersoft rastersoft at gmail.com
Tue Dec 3 22:01:51 GMT 2024


Hello,

I found the patch that fixes it: it is 
d20c6601664624116f3dc43f21c7ec4a186cf8d3 in the GIT repository. The 
patch itself is this:

diff --git a/libsoup/server/http1/soup-server-message-io-http1.c 
b/libsoup/server/http1/soup-server-message-io-http1.c
index 90139f2b..3803cabc 100644
--- a/libsoup/server/http1/soup-server-message-io-http1.c
+++ b/libsoup/server/http1/soup-server-message-io-http1.c
@@ -122,21 +122,22 @@ soup_server_message_io_http1_finished 
(SoupServerMessageIO *iface,
g_object_ref (msg);
g_clear_pointer (&io->msg_io, soup_message_io_http1_free);
- if (completion_cb)
- completion_cb (G_OBJECT (msg), completion, completion_data);
conn = soup_server_message_get_connection (msg);
- if (completion == SOUP_MESSAGE_IO_COMPLETE &&
- soup_server_connection_is_connected (conn) &&
- soup_server_message_is_keepalive (msg)) {
- io->msg_io = soup_message_io_http1_new (soup_server_message_new (conn));
- io->msg_io->base.io_source = soup_message_io_data_get_source 
(&io->msg_io->base,
- G_OBJECT (io->msg_io->msg),
- io->istream,
- io->ostream,
- NULL,
- (SoupMessageIOSourceFunc)io_run_ready,
- NULL);
- g_source_attach (io->msg_io->base.io_source, io->msg_io->async_context);
+ if (completion_cb) {
+ completion_cb (G_OBJECT (msg), completion, completion_data);
+ if (soup_server_connection_is_connected (conn)) {
+ io->msg_io = soup_message_io_http1_new (soup_server_message_new (conn));
+ io->msg_io->base.io_source = soup_message_io_data_get_source 
(&io->msg_io->base,
+ G_OBJECT (io->msg_io->msg),
+ io->istream,
+ io->ostream,
+ NULL,
+ (SoupMessageIOSourceFunc)io_run_ready,
+ NULL);
+ g_source_attach (io->msg_io->base.io_source, io->msg_io->async_context);
+ }
+ } else {
+ soup_server_connection_disconnect (conn);
}
g_object_unref (msg);
}
Although the diff in the GIT repository also adds an extra method in the 
soup-server class used by an extra unitary test that checks for this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20241203/80e6e08d/attachment.htm>


More information about the pkg-gnome-maintainers mailing list