Move some low-level object access control into Presents from Crowd (default all
objects to non-modifiable, restrict client object subscriptions to the client in question). Modified Peer code to not log a warning when a peer is not online in an expected way (not listening for connections). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4598 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
package com.threerings.presents.peer.server;
|
||||
|
||||
import java.net.ConnectException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
@@ -686,8 +687,12 @@ public class PeerManager
|
||||
// documentation inherited from interface ClientObserver
|
||||
public void clientFailedToLogon (Client client, Exception cause)
|
||||
{
|
||||
// we'll reconnect at most one minute later in refreshPeers()
|
||||
log.warning("Peer logon attempt failed " + _record + ": " + cause);
|
||||
if (cause instanceof ConnectException) {
|
||||
// we'll reconnect at most one minute later in refreshPeers()
|
||||
log.info("Peer not online " + _record + ": " + cause.getMessage());
|
||||
} else {
|
||||
log.warning("Peer logon attempt failed " + _record + ": " + cause);
|
||||
}
|
||||
}
|
||||
|
||||
// documentation inherited from interface ClientObserver
|
||||
|
||||
Reference in New Issue
Block a user