From 0df6a4c66879f64bdf3ba57358e8b97c586b2387 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 10 Apr 2010 12:00:58 -0400 Subject: Fix for proxies that close the connection when 407'ing a CONNECT If we try to CONNECT through a proxy, and it returns a "407 Proxy Authentication Required" but then closes the connection, we have to create a new connection before we can try CONNECTing again. The old soup-connection.c tunnel code did this, but it got accidentally lost in the soup-session.c version. Fix up tests/proxy-test to test both the connection-close and the persistent-connection cases. This was the underlying bug in https://bugzilla.gnome.org/show_bug.cgi?id=611663, and is at least part of https://bugzilla.gnome.org/show_bug.cgi?id=611539. --- libsoup/soup-status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsoup/soup-status.c') diff --git a/libsoup/soup-status.c b/libsoup/soup-status.c index 11422acf..2fa309af 100644 --- a/libsoup/soup-status.c +++ b/libsoup/soup-status.c @@ -77,7 +77,7 @@ * @SOUP_STATUS_IO_ERROR: A network error occurred, or the other end * closed the connection unexpectedly * @SOUP_STATUS_MALFORMED: Malformed data (usually a programmer error) - * @SOUP_STATUS_TRY_AGAIN: Formerly used internally. Now unused. + * @SOUP_STATUS_TRY_AGAIN: Used internally * @SOUP_STATUS_CONTINUE: 100 Continue (HTTP) * @SOUP_STATUS_SWITCHING_PROTOCOLS: 101 Switching Protocols (HTTP) * @SOUP_STATUS_PROCESSING: 102 Processing (WebDAV) -- cgit v1.2.1