google-nomulus/java/google/registry/proxy/handler
jianglai 00bf8a999f Handle malformed proxy protocol header
If the proxy protocol header contains a malformatted string, such as "PROXY UNKNOWN", instead of throwing and killing the connection, use the TCP source IP as the remote IP.

Also changed how the header is read from the buffer, to avoid a potential Netty resource leak. Originally the header is read into another ByteBuf, which needs be be explicit released in order for Netty to reclaim its memory (http://netty.io/wiki/reference-counted-objects.html). Now we just read it into a byte array and let JVM GC it.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188047084
2018-03-06 19:26:31 -05:00
..
BackendMetricsHandler.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
EppServiceHandler.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
HealthCheckHandler.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
HttpsRelayServiceHandler.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
ProxyProtocolHandler.java Handle malformed proxy protocol header 2018-03-06 19:26:31 -05:00
QuotaHandler.java Register quota metrics in GCP proxy 2018-02-20 15:39:15 -05:00
RelayHandler.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
SslClientInitializer.java Make GCP proxy log in a Stackdriver logging compliant format 2018-03-06 19:23:23 -05:00
SslServerInitializer.java Make GCP proxy log in a Stackdriver logging compliant format 2018-03-06 19:23:23 -05:00
WhoisServiceHandler.java Open source GCP proxy 2017-11-21 19:19:03 -05:00