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

Andrei Verdes commented on AXIS2-5845:
--------------------------------------

But you cannot release the connection inside that HttpPost outside the 
sendViaPost method because it is lost in that scope. If I'm mistaken can you 
tell me where it should be closed. I just upgraded from axis2 1.5 to 1.7 to use 
httpclient4 and the code outside stubs remained pretty much the same. But after 
performing a load test the connection pool gets full and connections are never 
released although the response is consumed.

> [axis2-transport-http] HTTPSenderImpl doesn't close HttpGet, HttpPost objects
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-5845
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5845
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.7.4
>            Reporter: Andrei Verdes
>            Priority: Critical
>
> The method releaseConnection() should be called on every HttpGet, HttpPost, 
> HttpDelete, HttpPut objects in the finally block. Otherwise it will build up 
> and eventually throw Timeout trying to get connection from pool.
> Egs:
> org.apache.axis2.transport.http.impl.httpclient4.HttpSenderImpl.sendViaPost() 
> should include a postMethod.releaseConnection() in the finally block.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to