lua-nginx-module icon indicating copy to clipboard operation
lua-nginx-module copied to clipboard

added an API for getting and setting the keepalive property of a request

Open aviramc opened this issue 10 years ago • 12 comments
trafficstars

aviramc avatar Mar 30 '15 11:03 aviramc

@aviramc Thank you for the update! Yeah, sometimes I found myself want this feature as well :) I'll look into this as soon as I can :)

agentzh avatar Mar 30 '15 23:03 agentzh

@aviramc Will you mind adding some test cases for this feature? Otherwise it looks good to me :)

agentzh avatar Mar 30 '15 23:03 agentzh

@agentzh , I've added some test cases

aviramc avatar Apr 09 '15 07:04 aviramc

Any update on this?

StephanDollberg avatar Feb 23 '17 18:02 StephanDollberg

@StephanDollberg What's you use case of this? Maybe you should just manipulate the Connection request header via ngx.req.set_header() and ngx.req.clear_header()?

agentzh avatar Feb 23 '17 18:02 agentzh

I'm in need of this feature as well.

@agentzh r->keepalive is set early enough that by the time you're far enough along to change the header that it's already set and won't be affected by changes to the header (or even by changes to connection_type).

josephcsible avatar Jul 18 '18 20:07 josephcsible

This pull request is now in conflict :(

mergify[bot] avatar Jun 26 '20 00:06 mergify[bot]