Detect Slave Client Disconnect (Benedict, Tom)

QuickWire (4/7/14 10:34AM)
Perkins, Bradley D (4/7/14 2:59PM)


QuickWire (4/7/14 10:34 AM)

I write a timestamp to the database instead of a local external file.
 If
the server hasn't heard from the client in x number of minutes, it
sends
out email.

Regards,
--

Paul

color><param>00000,0000,DDEE/param>II do have one question. In a case
where 4D Remote has lost its connection
to the server, is it possible that some processes (e.g., the one
writing
the heartbeat file) might continue to run in the background in 4D
Remote?
If so, I would probably not want to update the heartbeat file unless I
could ping the server. Can anyone confirm if I need to do the latter,
or
does a case where a disconnect occur stop all other 4D processing?
/color>

Perkins, Bradley D (4/7/14 2:59 PM)

I asked a similar question recently and plan to implement a heartbeat
file
based solution. I was thinking that I'd simply run the 'touch' command
on
a known file and have another script routinely check that file's last
modification date. If the age is greater than X, I'd run a script that
would kill 4D Remote if it is running. I've already got scripts in
place
that ensure 4D Remote is always running.

I do have one question. In a case where 4D Remote has lost its
connection
to the server, is it possible that some processes (e.g., the one
writing
the heartbeat file) might continue to run in the background in 4D
Remote?
If so, I would probably not want to update the heartbeat file unless I
could ping the server. Can anyone confirm if I need to do the latter,
or
does a case where a disconnect occur stop all other 4D processing?

Thanks,

Brad Perkins

Reply to this message

Summary created 4/7/14 at 12:36PM by Intellex Corporation

Comments welcome at: feedback@intellexcorp.com