You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2014/03/16 14:38:47 UTC

[jira] [Resolved] (HTTPCLIENT-1484) GzipCompressingEntity shouldn't close outputstream in finally block

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-1484.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.4 Alpha1
                   4.3.4

Danila,

You are absolutely right. Fix committed to SVN trunk and 4.3.x branch.

Please review / re-test.

Oleg

> GzipCompressingEntity shouldn't close outputstream in finally block
> -------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1484
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1484
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.3.1
>            Reporter: Danila Dyugurov
>             Fix For: 4.3.4, 4.4 Alpha1
>
>
> Using "Transfer-Encoding: chunked" when underlying stream throws any exception, it shouldn't close stream, because closing stream means send final zero chunk and server side decide that all is well and consume all stream as correct data.
> It's seems to me that solution: remove finally block, just close gzip stream after writeTo().



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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