[ 
https://issues.apache.org/jira/browse/OFBIZ-4430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108006#comment-13108006
 ] 

BJ Freeman commented on OFBIZ-4430:
-----------------------------------

Quick review there are two possible solutions with current code.
1)modify  org.ofbiz.base.util.URLConnector to handle the close automatically.
2)Call org.ofbiz.base.util.URLConnector.close in HttpClient. 
The way Commons does this is when the stream is closed the connector is closed.
will look at it again shortly to see if I agree with what I just wrote.

> Replace OFBiz HttpClient either by org.apache.commons.httpclient.HttpClient 
> or rewrite it using NIO
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4430
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4430
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Jacques Le Roux
>             Fix For: SVN trunk
>
>
> The main problem with current implementation is that it does not handle 
> connections release. You must rely on the SO to release them (timeout).
> Related thread: http://markmail.org/message/qgmdgqqxakio6fja

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

        

Reply via email to