axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] [Commented] (AXIS2-5845) [axis2-transport-http] HTTPSenderImpl doesn't close HttpGet, HttpPost objects
Date Sat, 22 Apr 2017 21:19:04 GMT


Andreas Veithen commented on AXIS2-5845:

The way this is supposed to work is that during the invocation of the sendViaPost method,
an InputStream for the response is extracted and stored in the message context. That stream
is closed after the response has been processed, releasing the connection.

> [axis2-transport-http] HTTPSenderImpl doesn't close HttpGet, HttpPost objects
> -----------------------------------------------------------------------------
>                 Key: AXIS2-5845
>                 URL:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message