[libsoup] soup-message-io: fix early SoupClientInputStream close case
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-message-io: fix early SoupClientInputStream close case
- Date: Sat, 19 Oct 2013 16:12:40 +0000 (UTC)
commit caa68752e295d48a3d1d9c6e5334f6c17a576000
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
libsoup/soup-message-io.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]