[libsoup/gnome-3-8] Bug 708006 - libsoup fails to close connection when message cancelled



commit 33c015eda2d53fa8de8189ebb23c056389541cd8
Author: David Woodhouse <David Woodhouse intel com>
Date:   Fri Sep 13 14:32:44 2013 +0100

    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.
    
    (cherry picked from commit b63d08471391c35b7c67d414f24fecf0d1810c74)

 libsoup/soup-connection.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-connection.c b/libsoup/soup-connection.c
index fbddfea..aa46f01 100644
--- a/libsoup/soup-connection.c
+++ b/libsoup/soup-connection.c
@@ -971,5 +971,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);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]