Archived
This forum has been archived. Please start a new discussion on GitHub.
Possiblity for cancelled method after force close?
Hi Zeroc, I'm trying to chase down an issue in our code. Unfortunately, it occurs very infrequently.
I have code that issues a disconnect method from the client to the server using a oneway proxy and then force closes the connection using ice_connection->close(true). Is it possible that the disconnect method may be cancelled, as in not delivered or processed by the server?
Regards --Roland
I have code that issues a disconnect method from the client to the server using a oneway proxy and then force closes the connection using ice_connection->close(true). Is it possible that the disconnect method may be cancelled, as in not delivered or processed by the server?
Regards --Roland
0
Comments
-
Yes, this is not only possible, but even likely. Closing the connection doesn't wait for outgoing messages. If you use a oneway request, the message can be lost without notice. If you use a twoway request, then you get a CloseConnectionException if you close gracefully , or a ConnectionLostException or similar if you close forcefully (if you close from a different thread, i.e., without waiting for the twoway to finish).0