[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpclient-commons-dev
Subject:    [jira] [Updated] (HTTPCLIENT-1425) Socket Closed Exception When Reading Connection: close Response E
From:       "James Leigh (JIRA)" <jira () apache ! org>
Date:       2013-10-22 17:34:44
Message-ID: JIRA.12674572.1382124104324.105141.1382463284049 () arcas
[Download RAW message or body]


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

James Leigh updated HTTPCLIENT-1425:
------------------------------------

    Attachment: HTTPCLIENT-1425b.patch

Thanks for the quick response. However, after a closer inspection the \
ConnectionHolder is not properly closed when the response is too large to cache. I \
have included another patch that addresses this in \
SizeLimitedResponseReader#getReconstructedResponse().

This patch also reduces the number of calls to Proxies#enhanceResponse(HttpResponse) \
by pushing the call down the stack.

James

> Socket Closed Exception When Reading Connection: close Response Entities
> ------------------------------------------------------------------------
> 
> Key: HTTPCLIENT-1425
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1425
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpCache
> Affects Versions: 4.3.1
> Environment: java version "1.7.0_25"
> OpenJDK Runtime Environment (IcedTea 2.3.12) (7u25-2.3.12-4ubuntu3)
> OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
> Reporter: James Leigh
> Fix For: 4.3.2
> 
> Attachments: HTTPCLIENT-1425b.patch, HTTPCLIENT-1425.patch
> 
> 
> If the server sends a long chunked response, httpclient-cache will throw socket \
> closed exception. HttpClient can deal with this response no problem (using \
> HttpClients.createDefault). However, CachingHttpClients.createMemoryBound throws an \
> exception every time I try it.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic