summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-10-19 12:11:34 -0400
committerDan Winship <danw@gnome.org>2013-10-19 12:11:34 -0400
commitcaa68752e295d48a3d1d9c6e5334f6c17a576000 (patch)
tree37341cb4d827b2c9ce8aae5a219222bf8eabe2bb
parent38cbd9905ea3f87bab16663a90375dbd48b75b49 (diff)
downloadlibsoup-caa68752e295d48a3d1d9c6e5334f6c17a576000.tar.gz
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
-rw-r--r--libsoup/soup-message-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c
index 16a74e11..03dc4333 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,