Temporary fix for the local server timing out outgoing connections. I don't
think it should be needed but I need to do more testing, post-bling. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5517 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -63,6 +63,13 @@ public class ServerCommunicator extends Communicator
|
|||||||
// we assume server entities have no firewall issues and can connect on the first port
|
// we assume server entities have no firewall issues and can connect on the first port
|
||||||
try {
|
try {
|
||||||
Connection conn = new Connection() {
|
Connection conn = new Connection() {
|
||||||
|
@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?
|
||||||
|
}
|
||||||
|
|
||||||
@Override public void connectFailure (IOException ioe) {
|
@Override public void connectFailure (IOException ioe) {
|
||||||
_logonError = ioe; // report this as a logon failure
|
_logonError = ioe; // report this as a logon failure
|
||||||
super.connectFailure(ioe);
|
super.connectFailure(ioe);
|
||||||
|
|||||||
Reference in New Issue
Block a user