Added code to establish the time delta between the client and server
clocks immediately following authentication. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1398 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: PresentsClient.java,v 1.30 2002/04/26 02:32:27 mdb Exp $
|
||||
// $Id: PresentsClient.java,v 1.31 2002/05/28 21:56:38 mdb Exp $
|
||||
|
||||
package com.threerings.presents.server;
|
||||
|
||||
@@ -561,7 +561,8 @@ public class PresentsClient
|
||||
// send a pong response
|
||||
Connection conn = client.getConnection();
|
||||
if (conn != null) {
|
||||
conn.postMessage(new PongResponse());
|
||||
PingRequest req = (PingRequest)msg;
|
||||
conn.postMessage(new PongResponse(req.getUnpackStamp()));
|
||||
} else {
|
||||
Log.info("Dropped pong response [client=" + client + "].");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user