opensubscriber
   Find in this group all groups
 
Unknown more information…

h : httpclient-dev@jakarta.apache.org 30 October 2006 • 12:31AM -0500

Re: [HttpCore] non-blocking NIO HTTP transport (server and client side)
by Roland Weber

REPLY TO AUTHOR
 
REPLY TO GROUP




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.

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jaka...
For additional commands, e-mail: httpclient-dev-help@jaka...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.