[
https://issues.apache.org/jira/browse/OFBIZ-4430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108329#comment-13108329
]
BJ Freeman commented on OFBIZ-4430:
-----------------------------------
in current httpClient.sendHttpRequest()
while ((line = post.readLine()) != null) {
if (Debug.verboseOn() || debug) Debug.log("[HttpClient] : " +
line, module);
buf.append(line);
if (lineFeed) {
buf.append("\n");
}
}
//have to set org.ofbiz.base.util.URLConnector.close() to protected.
//add the following line.
con.close();//sent request got back response so close connection.
> 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