If the connection attempt succeeded, reserve the connection before
authorDan Winship <danw@src.gnome.org>
Wed, 14 Jul 2004 15:21:07 +0000 (15:21 +0000)
committerDan Winship <danw@src.gnome.org>
Wed, 14 Jul 2004 15:21:07 +0000 (15:21 +0000)
commit86b05405598f1232077ac926d81e93378b62f377
tree7e91f40ddf08d89ee67fca392764f7939c63aafc
parent931ff330745d6a406d2fadcd87de2c46652ced0f
If the connection attempt succeeded, reserve the connection before

        * libsoup/soup-session.c (connect_result): If the connection
        attempt succeeded, reserve the connection before releasing
        host_lock. Otherwise, another thread might find it in the
        connection pool before the caller can queue a message on it.
        #60693

        * libsoup/soup-session-async.c (got_connection): Call
        soup_connection_release(), since we don't have a specific message
        in mind for the connection, so we need it to be considered idle.

        * libsoup/soup-connection.c (soup_connection_release): New
        function, to undo a soup_connection_reserve().
        (soup_connection_send_request, soup_connection_reserve,
        soup_connection_authenticate, soup_connection_reauthenticate):
        Document these
ChangeLog
libsoup/soup-connection.c
libsoup/soup-connection.h
libsoup/soup-session-async.c
libsoup/soup-session.c