zeroc-ice / ice-demos

Sample programs for Ice
https://zeroc.com
GNU General Public License v2.0
325 stars 217 forks source link

Glacier2/simpleChat detects dead router on shutdown #102

Closed bentoi closed 4 years ago

bentoi commented 4 years ago

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

pepone commented 4 years ago

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

bentoi commented 4 years ago

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