commit 201474b66955b010581f021f984f05065ececdb6 Author: Dan Winship 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,