Make SoupConnection warn if disposed "incorrectly"
authorDan Winship <danw@gnome.org>
Sat, 29 May 2010 11:43:34 +0000 (13:43 +0200)
committerDan Winship <danw@gnome.org>
Wed, 9 Jun 2010 15:23:00 +0000 (11:23 -0400)
commitf15ddd3eb4822e4ee08e536e42cd4844d614cba9
treefbd44aa80b3a9f139a0d29df4dc70349eeb3c9b9
parentf849f04a531cd38d0c84b060d5310f45064b15e1
Make SoupConnection warn if disposed "incorrectly"

Connections should always be disconnected and message-less by the time
they are disposed. Likewise, their SoupSockets should be disconnected
and not in the middle of an async connect when they're freed (though
we can't make the sockets warn unconditionally, since other SoupSocket
users external to libsoup may still be doing it "wrong", since that has
historically been a supported part of the API)

Fix some problems revealed by these warnings. Also, remove some weak
refs and replace others by hard refs as needed. Remove unnecessary
SoupSessionAsyncTunnelData type.
libsoup/soup-connection.c
libsoup/soup-session-async.c
libsoup/soup-session.c
libsoup/soup-socket.c