"OutgoingSessionPromise: Error sending packet to remote server (fast discard): "+
packet);
Log.debug("Error sending packet to domain '{}' (fast discard): {}",domain,packet);
continue;
}
else{
...
...
@@ -241,9 +241,7 @@ public class OutgoingSessionPromise implements RoutableChannelHandler {
}
catch(Exceptione){
returnErrorToSender(packet);
Log.debug(
"OutgoingSessionPromise: Error sending packet to remote server: "+packet,
e);
Log.debug("Error sending packet to domain '{}': {}",domain,packet,e);
// Mark the time when s2s failed
failureTimestamp=System.currentTimeMillis();
}
...
...
@@ -331,16 +329,16 @@ public class OutgoingSessionPromise implements RoutableChannelHandler {
}
}
catch(Exceptione){
Log.warn("Error returning error to sender. Original packet: "+packet,e);
Log.warn("An exception occurred while trying to returning a remote-server-not-found error (for domain '{}') to the original sender. Original packet: {}",domain,packet,e);
}
}
publicvoidaddPacket(Packetpacket)
voidaddPacket(Packetpacket)
{
if(!packetQueue.offer(packet))
{
returnErrorToSender(packet);
Log.debug("OutgoingSessionPromise: Error sending packet to remote server (queue full): "+packet);
Log.debug("Error sending packet to domain '{}' (outbound queue full): {}",domain,packet);