Java TCP keep-alive for a master server
Posted
by asmo
on Stack Overflow
See other posts from Stack Overflow
or by asmo
Published on 2010-06-02T09:22:13Z
Indexed on
2010/06/02
9:23 UTC
Read the original article
Hit count: 443
Context: Master server (Java, TCP) monitoring a list of hosted games (a different machine for the master server and for each hosted game server). Any user can host a game on his PC. Hosted games can last weeks or months.
Need: Knowing when hosted game servers are closed or no longer reachable.
Restriction 1: Can't rely on hosted servers' "gone offline update message", since those messages may never arrive (power down, Internet link cut, etc.)
Restriction 2: I'm not sure about TCP's built-in keep-alive, since it would mean a 24/7 open socket with each hosted server (correct me if I'm wrong)
Any thoughts?
© Stack Overflow or respective owner