Home Help Center

how to capture the "client droped" exceptions?

Pierre.SironPierre.Siron Member Pierre SironOrganization: ONERAProject: CERTI (http://savannah.nongnu.org/projects/certi/)

I took notice of the exceptions throwed by the Ice in the server-side if a client droped and did not destory its communicator(that means the client did not quit gracefully).

The exception output on my console are something like:

04/11/07 00:29:04.313 warning: connection exception:
TcpTransceiver.cpp:297: Ice::ConnectionLostException:
connection lost: WSAECONNRESET
local address =
remote address =

I'm wondering how to capture these exceptions since I want to do some additional process.




  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    You cannot. The reason is that connections may not be bound to the lifecycle of a client. A client can open up and close many connections during its operation if ACM is enabled (see the Ice manual for more details).

    The correct way to handle this is with sessions, and session timeout. See demo/Ice/session for an example of how to do this.
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    See also this FAQ.
Sign In or Register to comment.