[libsoup] Bug 708006 - libsoup fails to close connection when message cancelled



commit b63d08471391c35b7c67d414f24fecf0d1810c74
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.

 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 c118410..00fe72b 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);
 }


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