mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 03:57:51 +02:00
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 |
||
---|---|---|
.. | ||
com/google/testing/builddefs | ||
google/registry |