Force to release connection without waiting the final empty chunk arrival

2018-04-12 Thread Jim Ma
Hi, When I tried to create http client with a PoolingHttpClientConnectionManager and send get request to read the chunk body with the following lines: httpClient = HttpClientBuilder.create() .setConnectionManager(poolingHttpClientConnectionManager) .disableConten

Re: Force to release connection without waiting the final empty chunk arrival

2018-04-12 Thread Jim Ma
Thanks, Oleg. Can you please explain it more ? Do you mean the state of a connection is inconsistent when the chunked inputstream isn't fully consumed ? On Thu, Apr 12, 2018 at 5:38 PM, Oleg Kalnichevski wrote: > On Thu, 2018-04-12 at 15:44 +0800, Jim Ma wrote: > > Hi, >

Re: Force to release connection without waiting the final empty chunk arrival

2018-04-13 Thread Jim Ma
, Oleg Kalnichevski wrote: > On Fri, 2018-04-13 at 10:50 +0800, Jim Ma wrote: > > Thanks, Oleg. Can you please explain it more ? Do you mean the > > state of a connection is inconsistent when the chunked inputstream > > isn't fully consumed ? > > > > If the conn

Re: Force to release connection without waiting the final empty chunk arrival

2018-04-15 Thread Jim Ma
Thanks for the explanation, Oleg. I think we should discard this connection instead of trying to reuse it. Is closing http response the right thing to discard this connection immediately ? ​