diff options
author | Dan Winship <danw@src.gnome.org> | 2003-12-22 18:09:34 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-12-22 18:09:34 +0000 |
commit | 3ec7d96d9a5cdfb954c16add7e7dbc2c6749ae2c (patch) | |
tree | 7e3096f5a0348b5a8132bedc97b10b9d16470f7c /README | |
parent | 47eca3a518bc4b9adeeacfdd816df004df0a5933 (diff) | |
download | libsoup-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 'README')
0 files changed, 0 insertions, 0 deletions