Fix for proxies that close the connection when 407'ing a CONNECT
authorDan Winship <danw@gnome.org>
Sat, 10 Apr 2010 16:00:58 +0000 (12:00 -0400)
committerDan Winship <danw@gnome.org>
Sat, 10 Apr 2010 16:16:58 +0000 (12:16 -0400)
commit0df6a4c66879f64bdf3ba57358e8b97c586b2387
tree454bf7717e110ada8c602fbaf8fe426a7cacbbad
parent26c6cd984ad229a4c1d3c00889956dc0cbf53877
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-session-async.c
libsoup/soup-session-sync.c
libsoup/soup-session.c
libsoup/soup-status.c
tests/proxy-test.c