hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: [HttpCore] non-blocking NIO HTTP transport (server and client side)
Date Sun, 29 Oct 2006 16:31:36 GMT
Hi Robert,

> One thing with the example code that looks suspicious to me is the keep
> alive handling both the client and the server contains something like:
>     if (!this.connStrategy.keepAlive(response, context)) {
>         conn.close();
>     }
> Sure it is only a few lines of code, but why not say that client and
> server always close the connection and then handle persistent
> connections on a higher level (by the connection manager or whatever it
> is called).
> The current code demands that all users of http client does the right
> thing with regards to keep alive.

There currently is no HttpClient 4.0. We only have HttpCore.
We'll add automatic keep-alive handling in the HttpClient.
The examples just show that keep-alive is possible with
HttpCore alone.


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

View raw message