Hi folks, I'm looking to use LUA in HAProxy to enable two use cases:
1. Redirect a connection based upon inspecting initial traffic for a server name. 2. Redirect a connection when the target server closes its connection. My understanding is that both of these scenarios should be possible if I inspect a connection for its duration, however I'm also wishing to build something high-performance and wish for connections to remain primarily in TCP pass-through mode, most of the time. My questions are: 1. What's the most CPU friendly way to inspect a connection for a time-limited period (i.e. what configuration and commands in LUA should I be looking at etc). 2. Is there anyway to trigger a LUA action upon TCP active close from the target? Many thanks, Alistair

