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

Brian Chang updated HTTPCORE-426:
---------------------------------
    Description: 
I have a client concurrently making several {{PUT}} requests to a server. This 
server returns {{204}} for these requests. Occasionally, I'll get a 
{{ConnectionClosedException}}. Oddly enough, these exceptions go away if I 
change the server to return {{200}}.

In the debugger, when I hit the following line, I see that {{entry.isClosed()}} 
is true: 
{{http://grepcode.com/file/repo1.maven.org/maven2/org.apache.httpcomponents/httpcore-nio/4.4.1/org/apache/http/nio/pool/AbstractNIOConnPool.java/#382}}

I'll provide more details as I investigate.

  was:
I have a client concurrently making several {{PUT}} requests to a server. This 
server returns {{204}} for these requests. Occasionally, I'll get a 
{{ConnectionClosedException}}. Oddly enough, these exceptions go away if I 
change the server to return {{200}}.

This seems to happen because of the following:
connection is closed:
{{http://grepcode.com/file/repo1.maven.org/maven2/org.apache.httpcomponents/httpcore-nio/4.4.1/org/apache/http/nio/pool/AbstractNIOConnPool.java/#375}}
if it was the last free connection, it's then leased:
{{http://grepcode.com/file/repo1.maven.org/maven2/org.apache.httpcomponents/httpcore-nio/4.4.1/org/apache/http/nio/pool/AbstractNIOConnPool.java/#382}}


> Occasionally getting leased a closed connection
> -----------------------------------------------
>
>                 Key: HTTPCORE-426
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-426
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore NIO
>    Affects Versions: 4.4.5
>            Reporter: Brian Chang
>            Priority: Critical
>
> I have a client concurrently making several {{PUT}} requests to a server. 
> This server returns {{204}} for these requests. Occasionally, I'll get a 
> {{ConnectionClosedException}}. Oddly enough, these exceptions go away if I 
> change the server to return {{200}}.
> In the debugger, when I hit the following line, I see that 
> {{entry.isClosed()}} is true: 
> {{http://grepcode.com/file/repo1.maven.org/maven2/org.apache.httpcomponents/httpcore-nio/4.4.1/org/apache/http/nio/pool/AbstractNIOConnPool.java/#382}}
> I'll provide more details as I investigate.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to