<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">Nginx is proxying requests to my custom tcp server. I have my proxy handler to create the right request format and process headers etc. <br><br>The trouble started when I started using keepalive handler. I have to add a custom protocol header bytes for every new keepalive connection and skip the header bytes if nginx is using an existing cached one. Currently create_request is called before getting an upstream connection (from default round robin handler) and there seems to be no callback to my module once the connection is selected/created.<br><br>Any bright ideas ? Should I provide my
one connection handlers to do this or my own keepalive handler itself ?<br><br>Jai</div></div></body></html>