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:
@@ -1047,6 +1047,7 @@ public class PresentsSession
|
|||||||
{
|
{
|
||||||
// send a pong response using the transport with which the message was received
|
// send a pong response using the transport with which the message was received
|
||||||
PingRequest req = (PingRequest)msg;
|
PingRequest req = (PingRequest)msg;
|
||||||
|
log.info("Got ping, ponging", "client", client._username);
|
||||||
client.safePostMessage(new PongResponse(req.getUnpackStamp(), req.getTransport()));
|
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.AuthResponseData;
|
||||||
import com.threerings.presents.net.LogoffRequest;
|
import com.threerings.presents.net.LogoffRequest;
|
||||||
import com.threerings.presents.net.Message;
|
import com.threerings.presents.net.Message;
|
||||||
|
import com.threerings.presents.net.PingRequest;
|
||||||
import com.threerings.presents.net.UpstreamMessage;
|
import com.threerings.presents.net.UpstreamMessage;
|
||||||
|
|
||||||
import static com.threerings.presents.Log.log;
|
import static com.threerings.presents.Log.log;
|
||||||
@@ -66,8 +67,12 @@ public class ServerCommunicator extends Communicator
|
|||||||
@Override public void postMessage (Message msg) {
|
@Override public void postMessage (Message msg) {
|
||||||
super.postMessage(msg);
|
super.postMessage(msg);
|
||||||
// outgoing traffic on this connection is used to prevent idleness
|
// outgoing traffic on this connection is used to prevent idleness
|
||||||
_lastEvent = System.currentTimeMillis();
|
|
||||||
// TODO: shouldn't PongResponse handle this?
|
// 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) {
|
@Override public void connectFailure (IOException ioe) {
|
||||||
|
|||||||
Reference in New Issue
Block a user