Put some debugging in to see if we can figure out why the game server is

screwing the pooch on dev1.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5589 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-12-10 01:31:28 +00:00
parent 4e01505dc5
commit ec9e3331b9
2 changed files with 7 additions and 1 deletions
@@ -1047,6 +1047,7 @@ public class PresentsSession
{
// send a pong response using the transport with which the message was received
PingRequest req = (PingRequest)msg;
log.info("Got ping, ponging", "client", client._username);
client.safePostMessage(new PongResponse(req.getUnpackStamp(), req.getTransport()));
}
}
@@ -35,6 +35,7 @@ import com.threerings.presents.net.AuthResponse;
import com.threerings.presents.net.AuthResponseData;
import com.threerings.presents.net.LogoffRequest;
import com.threerings.presents.net.Message;
import com.threerings.presents.net.PingRequest;
import com.threerings.presents.net.UpstreamMessage;
import static com.threerings.presents.Log.log;
@@ -66,8 +67,12 @@ public class ServerCommunicator extends Communicator
@Override public void postMessage (Message msg) {
super.postMessage(msg);
// outgoing traffic on this connection is used to prevent idleness
_lastEvent = System.currentTimeMillis();
// TODO: shouldn't PongResponse handle this?
_lastEvent = System.currentTimeMillis();
// TEMP: debug
if (msg instanceof PingRequest) {
log.info("Pinging on server comm " + msg);
}
}
@Override public void connectFailure (IOException ioe) {