Forum: NGINX Adding custom protocol data while creating new keepalive connections

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fb6843bebac553caa3b78475a657b33b?d=identicon&s=25 Jayadev C (Guest)
on 2014-04-07 16:49
(Received via mailing list)
Nginx is proxying requests to my custom tcp server. I have my proxy
handler to create the right request format and process headers etc.

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.

Any bright ideas ? Should I provide my one connection handlers to do
this or my own keepalive handler itself ?

Jai
This topic is locked and can not be replied to.