[ http://issues.apache.org/jira/browse/AXISCPP-558?page=history ]
Fred Preston reassigned AXISCPP-558:
------------------------------------
Assign To: (was: Fred Preston)
Hi Tim,
I'm not quite sure if this is a good idea or not as I can see valid argument
for doing this and not doing this... On balance, I think I would rather the
client knew that the server had timed out by catching the thrown exception and
then performed its own reconnection.
Regards,
Fred Preston.
> 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)
> Versions: unspecified
> Reporter: Tim Bartley
> Fix For: unspecified
> 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