Welcome! Log In Create A New Profile

Advanced

Adding custom protocol data while creating new keepalive connections

Jayadev C
April 07, 2014 10:50AM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Adding custom protocol data while creating new keepalive connections

Jayadev C April 07, 2014 10:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready