summaryrefslogtreecommitdiff
path: root/libsoup/soup-connection.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2003-12-22 18:09:34 +0000
committerDan Winship <danw@src.gnome.org>2003-12-22 18:09:34 +0000
commit3ec7d96d9a5cdfb954c16add7e7dbc2c6749ae2c (patch)
tree7e3096f5a0348b5a8132bedc97b10b9d16470f7c /libsoup/soup-connection.c
parent47eca3a518bc4b9adeeacfdd816df004df0a5933 (diff)
downloadlibsoup-3ec7d96d9a5cdfb954c16add7e7dbc2c6749ae2c.tar.gz
Lots of thread-safety stuff, primarly so you can disconnect a socket from
* libsoup/soup-socket.c: Lots of thread-safety stuff, primarly so you can disconnect a socket from one thread while doing I/O in another. * libsoup/soup-message-io.c (soup_message_io_cancel): Split into soup_message_io_stop() and io_cleanup(), to separate out the "stop reading/writing" and "free data" phases to allow thread-safe synchronous cancellation. (soup_message_io_finished): call both soup_message_io_stop() and io_cleanup() (io_error): Only set SOUP_STATUS_IO_ERROR on the message if it doesn't already have a transport error status (eg, CANCELLED). (new_iostate): Call io_cleanup() if needed. * libsoup/soup-status.h: add "SOUP_STATUS_NONE" for 0, to make it clearer that it's not a status. * libsoup/soup-message.c (finalize, restarted, finished, soup_message_set_uri): s/soup_message_io_cancel/soup_message_io_stop/ (soup_message_cleanup_response): s/0/SOUP_STATUS_NONE/ * libsoup/soup-connection.c (send_request): Remove soup_message_io_cancel call. * libsoup/soup-session-sync.c (send_message): Connect to the connection's "disconnected" signal rather than using a weak ref, since that's what we really care about, and it's possible that the connection may have an extra ref on it somewhere that would keep it from being destroyed even if it was disconnected.
Diffstat (limited to 'libsoup/soup-connection.c')
-rw-r--r--libsoup/soup-connection.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libsoup/soup-connection.c b/libsoup/soup-connection.c
index 5e3d3bda..d2ca4020 100644
--- a/libsoup/soup-connection.c
+++ b/libsoup/soup-connection.c
@@ -625,7 +625,6 @@ send_request (SoupConnection *conn, SoupMessage *req)
soup_message_filter_setup_message (conn->priv->filter, req);
}
- soup_message_io_cancel (req);
soup_message_send_request (req, conn->priv->socket,
conn->priv->proxy_uri != NULL);
}