[jboss-jira] [JBoss JIRA] Commented: (JBREM-1267) Allow HTTPClientInvoker to call disconnect on HttpURLConnection after use

Ron Sigal (JIRA) jira-events at lists.jboss.org
Thu Jan 20 00:09:49 EST 2011


    [ https://issues.jboss.org/browse/JBREM-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576687#comment-12576687 ] 

Ron Sigal commented on JBREM-1267:
----------------------------------

If HTTPClientInvoker.DISCONNECT_AFTER_USE (actual value "disconnectAfterUse") is set to true, HTTPClientInvoker will call HttpURLConnection.disconnect() following the invocation.  The default value is false.

Testing:  there are no specific unit tests.  Will watch hudson for anomalous behavior.

> Allow HTTPClientInvoker to call disconnect on HttpURLConnection after use
> -------------------------------------------------------------------------
>
>                 Key: JBREM-1267
>                 URL: https://issues.jboss.org/browse/JBREM-1267
>             Project: JBoss Remoting
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.5.3.SP1, 2.2.3.SP3
>            Reporter: Ron Sigal
>            Assignee: Ron Sigal
>             Fix For: 2.5.3.SP2, 2.2.3.SP4
>
>
> org.jboss.remoting.transport.http.HTTPClientInvoker does not currently disconnect a java.net.HttpURLConnection after each use, letting the HttpURLConnection manage its resources internally.  It has been found that HttpURLConnection can leave a number of sockets in the CLOSE_WAIT, which can cause problems under heavy load.  HTTPClientInvoker should offer an option to disconnect the HttpURLConnection.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list