[PATCH] HTTP: implement 'connect' and 'close' phases
alessandro at cloudflare.com
Fri Nov 20 12:49:48 UTC 2015
On Fri, Nov 20, 2015 at 12:28:29pm +0000, Carlos Eduardo Ferreira Rodrigues wrote:
> On 20-11-2015 09:45, Alessandro Ghedini wrote:
> > [...]
> > These can be useful for keeping track of TCP connections for debugging,
> > monitoring and logging purposes, and can also be used to apply custom
> > configurations (e.g. socket options).
> > [...]
> How feasible would it be to have a similar phase for new requests inside
> the same (keep-alive) connection?
Not sure I follow...
> For me, the interesting use case here would be marking connections with
> IP_TOS/SO_MARK for traffic-shaping/routing purposes and being able to
> change marks while the connection is still open depending on the
> specific content that's being transferred for that request.
You can set an initial mark in the NGX_HTTP_CONNECT_PHASE, and then update
it in any of the content phases, no? How does the keep-alive figure in this?
More information about the nginx-devel