axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamil Zuzda (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIS2-5084) Service unavailable CLOSE_WAIT
Date Sat, 02 Jul 2011 18:28:21 GMT
Service unavailable CLOSE_WAIT
------------------------------

                 Key: AXIS2-5084
                 URL: https://issues.apache.org/jira/browse/AXIS2-5084
             Project: Axis2
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.5.5
         Environment: Linux
            Reporter: Kamil Zuzda
            Priority: Critical


Problem: 
During testing in some occasions we have experienced 503 response from service which did leave
the sockets in CLOSE_WAIT state. 

After extending HTTPSender in method handleResponse to check for the SC_SERVICE_UNAVAILABLE
in the same way as for SC_INTERNAL_SERVER_ERROR and SC_BAD_REQUEST problem seams to disappear.
 

Possible solution:
class: HTTPSender
method: handleResponse
Existing:
    method.releaseConnection();
        } else if (statusCode == HttpStatus.SC_INTERNAL_SERVER_ERROR 
                || statusCode == HttpStatus.SC_BAD_REQUEST) {
            // Save the HttpMethod so that we can release the connection when cleaning up
            msgContext.setProperty(HTTPConstants.HTTP_METHOD, method);
Updated:
    method.releaseConnection();
        } else if (statusCode == HttpStatus.SC_INTERNAL_SERVER_ERROR 
                || statusCode == HttpStatus.SC_SERVICE_UNAVAILABLE
                || statusCode == HttpStatus.SC_BAD_REQUEST) {
            // Save the HttpMethod so that we can release the connection when cleaning up
            msgContext.setProperty(HTTPConstants.HTTP_METHOD, method);

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message