We never want to release the connection on message free, even if the
authorJoe Shaw <joe@ximian.com>
Mon, 9 Dec 2002 18:45:58 +0000 (18:45 +0000)
committerJoe Shaw <joeshaw@src.gnome.org>
Mon, 9 Dec 2002 18:45:58 +0000 (18:45 +0000)
2002-12-09  Joe Shaw  <joe@ximian.com>

* libsoup/soup-queue.c (proxy_https_connect_cb): We never want to
release the connection on message free, even if the connection was
unsuccessful.

ChangeLog
libsoup/soup-queue.c

index 674402d..d0c14fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-12-09  Joe Shaw  <joe@ximian.com>
+
+       * libsoup/soup-queue.c (proxy_https_connect_cb): We never want to
+       release the connection on message free, even if the connection was
+       unsuccessful.
+
 2002-12-03  Joe Shaw  <joe@ximian.com>
 
        * libsoup/soup-ssl.c (soup_ssl_get_iochannel_real): Call
index 11acebb..5fc1bbf 100644 (file)
@@ -512,17 +512,17 @@ proxy_https_connect_cb (SoupMessage *msg, gpointer user_data)
 {
        gboolean *ret = user_data;
 
+       /*
+        * Avoid releasing the connection on message free
+        */
+       msg->connection = NULL;
+
        if (!SOUP_MESSAGE_IS_ERROR (msg)) {
                /*
                 * Bless the connection to SSL
                 */
                msg->connection->channel = 
                        soup_ssl_get_iochannel (msg->connection->channel);
-
-               /*
-                * Avoid releasing the connection on message free
-                */
-               msg->connection = NULL;
                
                *ret = TRUE;
        }