diff options
author | Dan Winship <danw@src.gnome.org> | 2004-04-15 17:33:23 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2004-04-15 17:33:23 +0000 |
commit | 77cdfc03f7db7c20ac4981f35b11c691425d44c1 (patch) | |
tree | 9199fcd6c70fb297f4024cf5084e0de277020dd9 /libsoup/soup-connection.c | |
parent | 98be27445dd9ee43f2e388a793cb7e33542c5fde (diff) | |
download | libsoup-77cdfc03f7db7c20ac4981f35b11c691425d44c1.tar.gz |
Connect to the socket's "disconnect" signal. (We were only doing this from
* libsoup/soup-connection.c (soup_connection_connect_sync):
Connect to the socket's "disconnect" signal. (We were only doing
this from the async version before, which meant that synchronous
SoupConnections could outlive their sockets and start causing
errors.) #57004
* libsoup/soup-connection-ntlm.c (send_request): Remove the old
Authorization header before adding a new one.
Diffstat (limited to 'libsoup/soup-connection.c')
-rw-r--r-- | 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 9ab792b2..2d736c74 100644 --- a/libsoup/soup-connection.c +++ b/libsoup/soup-connection.c @@ -488,6 +488,9 @@ soup_connection_connect_sync (SoupConnection *conn) if (!SOUP_STATUS_IS_SUCCESSFUL (status)) goto fail; + g_signal_connect (conn->priv->socket, "disconnected", + G_CALLBACK (socket_disconnected), conn); + if (conn->priv->conn_uri->protocol == SOUP_PROTOCOL_HTTPS) { if (!soup_socket_start_ssl (conn->priv->socket)) { status = SOUP_STATUS_SSL_FAILED; |