Log.debug("Error sending packet to domain '{}' (fast discard): {}",domain,packet);
"OutgoingSessionPromise: Error sending packet to remote server (fast discard): "+
packet);
continue;
continue;
}
}
else{
else{
...
@@ -240,9 +237,7 @@ public class OutgoingSessionPromise implements RoutableChannelHandler {
...
@@ -240,9 +237,7 @@ public class OutgoingSessionPromise implements RoutableChannelHandler {
}
}
catch(Exceptione){
catch(Exceptione){
returnErrorToSender(packet);
returnErrorToSender(packet);
Log.debug(
Log.debug("Error sending packet to domain '{}': {}",domain,packet,e);
"OutgoingSessionPromise: Error sending packet to remote server: "+packet,
e);
// Mark the time when s2s failed
// Mark the time when s2s failed
failureTimestamp=System.currentTimeMillis();
failureTimestamp=System.currentTimeMillis();
}
}
...
@@ -330,12 +325,17 @@ public class OutgoingSessionPromise implements RoutableChannelHandler {
...
@@ -330,12 +325,17 @@ public class OutgoingSessionPromise implements RoutableChannelHandler {
}
}
}
}
catch(Exceptione){
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)
packetQueue.add(packet);
{
if(!packetQueue.offer(packet))
{
returnErrorToSender(packet);
Log.debug("Error sending packet to domain '{}' (outbound queue full): {}",domain,packet);