My use case is that my Netty server is sitting behind a TCP proxy. The TCP proxy may or may not add info on the original client's connection using https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt
It looks like the netty-codec-haproxy is good for this, however if a normal connection comes in that doesn't have the HA Proxy protocol at the beginning then HAProxyMessageDecoder fails and closes the connection. (I note in this case the class guesses the the HA Proxy Protocol v1 is used.)
Is there a way to get a HAProxyMessage for connections that have proxy data prepended to their connection, and for it to not do anything if there is no data prepended so I can continue processing the connection without that extra data available?