Question
· Jan 25, 2017

Is there any way to detect network disconections on a Tcpip socket (SO independent)

I've already  tryed

-  writing in the sockect

- disconnect it after a predefined period of inactivity

I would like to know if there is another way to do it 

Discussion (2)0
Log in or sign up to continue

You may also want to try Monitoring for Disconnect Mode (D mode)
(http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...).
This mode prevents a Caché process from silent halting on disconnect, which occurs by default when the socket device is the process $principal. D mode garranties that process's error trap code will handle <DISCONNECT> errors anyway.