On 01/04/2015 07:47 PM, Maxim Dounin wrote:
If there is a need to allow dynamic control of keepalive, I think
that proper way would be to extend the "keepalive_disable"
directive with variables support.


Thanks for this suggestion. I started exploring this option today. The keepalive directive is used to set the keepalive field on the request struct in the find_config_phase before we have the content. The Connection header is later added in a filter. If I need to make keepalive_disable have variable support that can use the $http_ variables (or something else that depends on the content), I need to do this after we have the content and before the filter.

Should I continue down this path, or am I misunderstanding what you mean here?

_______________________________________________
nginx-devel mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to