if soup_connection_connect_sync() returns SOUP_STATUS_TRY_AGAIN, then try
authorDan Winship <danw@src.gnome.org>
Tue, 13 Mar 2007 00:58:28 +0000 (00:58 +0000)
committerDan Winship <danw@src.gnome.org>
Tue, 13 Mar 2007 00:58:28 +0000 (00:58 +0000)
commit12f4894503c637795b6132c0080dcf98667ecf2b
tree0ffa48ec0558a119e48e1d2de3472ce7d3b57661
parent22ae7a1e8f61e652e379615a052030390ada4270
if soup_connection_connect_sync() returns SOUP_STATUS_TRY_AGAIN, then try

* libsoup/soup-session-sync.c (wait_for_connection): if
soup_connection_connect_sync() returns SOUP_STATUS_TRY_AGAIN, then
try again. (Duh.) Fixes SSL-via-proxy-when-using-synchronous-I/O-
where-the-proxy-closes-the-connection-when-returning-407. (Reported
by Varadhan.)

* tests/get.c: Rewrite to use soup_session_send_message rather
than soup_session_queue_message, and add a "-s" flag to use
SoupSessionSync rather than SoupSessionAsync (so we can test bugs
in the sync code paths).

svn path=/trunk/; revision=916
ChangeLog
libsoup/soup-session-sync.c
tests/get.c