hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HTTPCLIENT-1484) GzipCompressingEntity shouldn't close outputstream in finally block
Date Sun, 16 Mar 2014 10:50:47 GMT

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

Sebb updated HTTPCLIENT-1484:
-----------------------------

    Description: 
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().

  was:
Using "Trasnfer-Encoding: chunked" when underline 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 finnally block, just close gzip stream after writeTo().


> 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
>
> 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


Mime
View raw message