cURL / Mailing Lists / curl-users / Single Mail

curl-users

Connection close with HTTP proxies

From: Michael-O <1983-01-06_at_gmx.net>
Date: Wed, 4 Dec 2013 09:53:06 +0100 (CET)

Hi,

I am investigating an issue with HTTP proxy and asking myself why curl behaves the way it behaves. I am using curl 7.34.0 from master and this is my usecase:

I am retrieving a resource [1] over Subversion 1.8.x and the included serf 1.3.x dies in an endless loop [2]. Examing in Wireshark reveils that a CONNECT happens, the proxy (MS Forefront TMG) responds with 407 AND Connection: close. The client aborts the CONNECT, closes the TCP connection and starts over and over again. Doing the same with curl works flawlessly.

So my question is: Why does curl simply retain the connection although closed by the proxy server and keeps going? (Trace files available). I presume that curl's behavior is correct but why?

Thanks,

Michael

[1] https://svn.java.net/svn/jax-ws-commons~svn/trunk/jaxws-maven-plugin/
[2] http://code.google.com/p/serf/issues/detail?id=123
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-04