haneefmubarak / Aixen

A partially distributed online multiplayer service
MIT License
13 stars 0 forks source link

Do we need heartbeat port? #2

Closed substanc3-dev closed 10 years ago

substanc3-dev commented 10 years ago

Why not just ping the server just 4 times and check if all failed?

haneefmubarak commented 10 years ago

Heartbeats are used between servers to ensure that servers are reachable. If a server should fail to return heartbeats, the network disconnects the server from the network.

Having a separate port for heartbeat communications means that even if the server is working on something, a separate thread dedicated to handling the heartbeat will still return heartbeats.

Also, there isn't really any real cost associated with additional ports as long as we don't go overboard with them.

Good question though!

On Wednesday, March 12, 2014, Jano Varga notifications@github.com wrote:

Why not just ping the server just 4 times and check if all failed?

Reply to this email directly or view it on GitHubhttps://github.com/haneefmubarak/Aixen/issues/2 .

NOTICE: This e-mail (and any attachments) may contain PRIVILEGED OR CONFIDENTIAL information and is intended only for the use of the specific individual(s) to whom it is addressed. It may contain information that is privileged and confidential under state and federal law. This information may be used or disclosed only in accordance with law, and you may be subject to penalties under law for improper use or further disclosure of the information in this e-mail and its attachments. If you have received this e-mail in error, please immediately notify the person named above by reply e-mail, and then delete the original e-mail. Thank you.

substanc3-dev commented 10 years ago

Ok. Thanks for reply.