Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37791168
en ru br
ALT Linux repos
S:2.74.3-alt1.1
5.0: 2.26.1-alt1
4.1: 2.2.104-alt1
4.0: 2.2.100-alt1
3.0: 2.2.3-alt1.1

Group :: System/Libraries
RPM: libsoup

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libsoup-2.44.1-up-201474b6.patch
Download


commit 201474b66955b010581f021f984f05065ececdb6
Author: Dan Winship <danw@gnome.org>
Date:   Sat Oct 19 12:11:34 2013 -0400
    soup-message-io: fix early SoupClientInputStream close case
    
    When closing the stream early, we should be skipping the read state
    ahead to FINISHING, rather than BODY_DONE, so that got_body doesn't
    get emitted (thus causing the connection to mark itself reusable).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710494
diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c
index 16a74e1..03dc433 100644
--- a/libsoup/soup-message-io.c
+++ b/libsoup/soup-message-io.c
@@ -991,7 +991,7 @@ soup_message_io_run_until_finish (SoupMessage   *msg,
 		g_return_if_fail (io->mode == SOUP_MESSAGE_IO_CLIENT);
 
 		if (io->read_state < SOUP_MESSAGE_IO_STATE_BODY_DONE)
-			io->read_state = SOUP_MESSAGE_IO_STATE_BODY_DONE;
+			io->read_state = SOUP_MESSAGE_IO_STATE_FINISHING;
 	}
 
 	if (!io_run_until (msg, blocking,
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin