SoupSessionSync: fix messages getting stuck forever
authorDan Winship <danw@gnome.org>
Tue, 23 Nov 2010 17:53:37 +0000 (12:53 -0500)
committerDan Winship <danw@gnome.org>
Tue, 23 Nov 2010 18:17:40 +0000 (13:17 -0500)
commit84fd3e9bfc19dc64f0502701ec633c99d9fd0ff9
tree6c446d9730a9199ef83cea4f9b7dcee8fb39e8b0
parent81d74479a5a15bed369dc0a2e677742f72686cc5
SoupSessionSync: fix messages getting stuck forever

Messages in SoupSessionSync were getting stuck forever if they didn't
manage to get a connection on the first try; the test programs didn't
pick this up because none of them queue enough messages all at once to
hit the max-conns limit.

Fix the messages-getting-stuck bug, and add a test case to misc-test
to verify it. Also fix another SoupSessionSync bug where cancelling
several messages at once could cause spurious errors.

https://bugzilla.gnome.org/show_bug.cgi?id=634422
libsoup/soup-session-sync.c
tests/misc-test.c