Added facilities for idling out clients that have not communicated with

the server in 90 seconds. The client is set up to ping the server if it
has had nothing to say to it for other reasons in the last 60 seconds.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1860 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-10-29 23:51:26 +00:00
parent af5b530b4c
commit 98d19e055a
8 changed files with 122 additions and 23 deletions
@@ -1,5 +1,5 @@
//
// $Id: PingRequest.java,v 1.7 2002/07/23 05:52:48 mdb Exp $
// $Id: PingRequest.java,v 1.8 2002/10/29 23:51:26 mdb Exp $
package com.threerings.presents.net;
@@ -10,6 +10,11 @@ import com.threerings.io.ObjectOutputStream;
public class PingRequest extends UpstreamMessage
{
/** The number of milliseconds of idle upstream that are allowed to
* elapse before the client sends a ping message to the server to let
* it know that we're still alive. */
public static final long PING_INTERVAL = 60 * 1000L;
/**
* Zero argument constructor used when unserializing an instance.
*/