[ https://issues.apache.org/jira/browse/HTTPCLIENT-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Danila Dyugurov updated HTTPCLIENT-1484: ---------------------------------------- Summary: GzipCompressingEntity shouldn't close outputstream in finally block (was: GzipCompressingEntity shouldn't close outputstream in final block) > 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 > > > 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(). -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org