On Fri, 2014-05-23 at 11:50 +0100, Daniel Feist wrote:
> Hi,
> 
> I noticed that in HC 3.1 it is possible to configure
> Socket.setSendBufferSize / Socket.setReceiveBufferSize via
> HttpConnectionManagerParams.  While this may not always been
> necessary, it is useful in some cases.  Is this not possible in HC
> 4.3?
> 

Those options will be re-introduced in 4.4 (already available in trunk)
At the same time I am not sure how useful they are, though. I may well
be mistaken by those options should be applicable only when tcpNoDelay
is false (Nagle's algorithm is on), which actually makes no sense in the
context of HTTP protocol.

> Also I noticed that ConnectionConfig.bufferSize is used to size the
> internal buffer in the SessionInputBuffer that wraps the inputStream,
> meaning that when statusLine and headers are read this buffer is used.
>  Out of interest, in HC 3.1 was no buffer used at all here, or what is
> the comparison?
> 

HC 3.x uses vulgar BufferedInputStream and reads one character at a
time, while parsing header elements, which is clearly suboptimal.

Cheers



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to