On Fri, 2021-01-08 at 16:57 +0100, Joan grupoventus wrote:
> Hello,
> 
>  �
> 
> I’m using HttpClient 4.5.7. reading responses from a backend through
> a ‘HttpAsyncResponseConsumer’ on the ‘consumeContent’ method  in this
> way:
> 
>  �
> 
> while ( (numBytesRead = decoder.read(this.bbuf)) > 0 ) {
> 
> ( . . . )
> 
> }
> 
>   
> 
> where  this.bbuf = ByteBuffer.allocate(32768);
> 
>   
> 
>   
> 
> The buffer size in the async http instance is configured in this way
> (‘phccm’ is  a ‘PoolingNHttpClientConnectionManager’):
> 
> this.phccm.setDefaultConnectionConfig(ConnectionConfig.custom().setBu
> fferSize(32768).setFragmentSizeHint(32768).build()
> 
>   
> 
> And on the IOReactor:
> 
> IOReactorConfig ioReactorConfig =
> IOReactorConfig.custom().setRcvBufSize(32768) ...
> 
> 

Please post a complete test application I could run locally to
reproduce the issue.

Oleg



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

Reply via email to