zeroc-ice/ice-demos

Glacier2/simpleChat detects dead router on shutdown

Closed this issue · 2 comments

When killing the simpleChat server:

./server
^CDetected dead router - destroying all associated sessions 

The close callback should check the connection's exception and only print this message if the exception is not ObjectAdapterDeactivationException

@bentoi how can we get the exception here? the exception is not passed to the connection close callback

The close callback could throw the connection's exception with Connection::throwException.