summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2013-09-13 14:32:44 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-09-13 14:32:44 +0100
commitb63d08471391c35b7c67d414f24fecf0d1810c74 (patch)
tree19b507202f817b86f92e56899cc9108a3f2500eb
parent03fd6fdc23e0652dda8cb11a16d3fe9b41e16ba9 (diff)
downloadlibsoup-b63d08471391c35b7c67d414f24fecf0d1810c74.tar.gz
Bug 708006 - libsoup fails to close connection when message cancelled
We need to clear priv->reusable when we send a request, *even* if we're only resending a request that was already tried once (as with NTLM authentication). Otherwise, cancellation of the pending, restarted, request will not properly close the connection as it should.
-rw-r--r--libsoup/soup-connection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsoup/soup-connection.c b/libsoup/soup-connection.c
index c1184104..00fe72b9 100644
--- a/libsoup/soup-connection.c
+++ b/libsoup/soup-connection.c
@@ -890,5 +890,8 @@ soup_connection_send_request (SoupConnection *conn,
if (item->msg != priv->current_msg)
set_current_msg (conn, item->msg);
+ else
+ priv->reusable = FALSE;
+
soup_message_send_request (item, completion_cb, user_data);
}