From b63d08471391c35b7c67d414f24fecf0d1810c74 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Fri, 13 Sep 2013 14:32:44 +0100 Subject: 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. --- libsoup/soup-connection.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libsoup/soup-connection.c') 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); } -- cgit v1.2.1