You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Tim Bartley (JIRA)" <ax...@ws.apache.org> on 2005/03/18 07:20:22 UTC

[jira] Updated: (AXISCPP-558) Gracefully handle server side close of persistant connection

     [ http://issues.apache.org/jira/browse/AXISCPP-558?page=history ]

Tim Bartley updated AXISCPP-558:
--------------------------------

    Attachment: http.patch

> Gracefully handle server side close of persistant connection
> ------------------------------------------------------------
>
>          Key: AXISCPP-558
>          URL: http://issues.apache.org/jira/browse/AXISCPP-558
>      Project: Axis-C++
>         Type: Bug
>   Components: Transport (axis3)
>     Reporter: Tim Bartley
>  Attachments: http.patch
>
> With persistent connections, the server will typically time out an idle connection and close it from it's end. Currently this results in an exception propagating to the user app when it is safe to transparently close and reopen the connection.
> The attached patch adds a new interface that would allow optimized detection of server side closed connections without sending any data. e.g. using recv(MSG_PEEK) - currently the way HTTP transport works there is often some data (trailing white space) left in the connection anyway which stops us seeing the connection as closed so that for now I've just left the channel implementations of reopenConnection as simply "return false;".
> The main change is that on receiving a HTTPTransportException in HTTPTransport::flushOutput during the send operations the connection will be reopened (if it hasn't alreayd been reopened before) and the send retried.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira