hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: Connection keep-alive
Date Tue, 31 Jan 2006 13:51:36 GMT
Hi Klaus,

> to keep a http connection open,
> 
> a) does the application have to set the request header Connection:
> Keep-Alive ?
> b) does httpClient set it by itself ?
> c) is it not neccessary to set the header Connection: Keep-Alive ?

I can't help thinking that these questions are all the same.

HttpClient will by default try to keep connections alive.
This includes sending a keep-alive header if the application does
not set one. This is also addressed in our optimization guide:
http://jakarta.apache.org/commons/httpclient/performance.html#Connection%20persistence

cheers,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message