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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user