mirror of
https://github.com/google/nomulus
synced 2026-01-09 23:47:49 +00:00
Only log EPP and WHIOS connections
Only connections that have backend are of interest to us. Move the logging statement accordingly. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=208898433
This commit is contained in:
@@ -93,13 +93,14 @@ public class ProxyServer implements Runnable {
|
||||
inboundChannel.attr(PROTOCOL_KEY).set(inboundProtocol);
|
||||
inboundChannel.attr(RELAY_BUFFER_KEY).set(new ArrayDeque<>());
|
||||
addHandlers(inboundChannel.pipeline(), inboundProtocol.handlerProviders());
|
||||
logger.atInfo().log("Connection established: %s %s", inboundProtocol.name(), inboundChannel);
|
||||
|
||||
if (!inboundProtocol.hasBackend()) {
|
||||
// If the frontend has no backend to relay to (health check, web WHOIS redirect, etc), start
|
||||
// reading immediately.
|
||||
inboundChannel.config().setAutoRead(true);
|
||||
} else {
|
||||
logger.atInfo().log(
|
||||
"Connection established: %s %s", inboundProtocol.name(), inboundChannel);
|
||||
// Connect to the relay (outbound) channel specified by the BackendProtocol.
|
||||
BackendProtocol outboundProtocol = inboundProtocol.relayProtocol();
|
||||
Bootstrap bootstrap =
|
||||
|
||||
Reference in New Issue
Block a user