HTTP Keepalive @Maxim Dounin

Maxim Dounin mdounin at
Tue Jul 12 01:50:18 MSD 2011


On Tue, Jul 12, 2011 at 07:06:23AM +1000, SplitIce wrote:

> Today I read through the code of the
> Although my understanding of nginx internals is limited, I did C programming
> back in my youth. From my understanding of the code there is very little
> modification needed in order to add HTTP (backend HTTP/1.1) keep alive.
> As I see it to complete this the protocol has to be updated to the version
> of 1.1 and the "Connection: keep-alive" header needs to be added to
> responses, this would add very basic keep alive support to nginx I would
> beleive (please do correct me if I am wrong)


The fun starts somewhere near "the protocol has to be updated to 
the version of 1.1".  My current diff is something like "7 files 
changed, 688 insertions(+), 29 deletions(-)" and still growing.

> To make the modifications howeaver it would be necessary to edit the nginx
> source (or make a new http backend plugin, which could be mostly copy and
> paste) -- I would be more specific on this matter but is down
> currently and im not able to get the latest version of the source to look
> at.
> Would it be possible for someone with a knowledge of nginx internals to take
> a look at this and tell me if I am going about this the correct way? I am
> going to fiddle a bit and see if I can produce a plugin once comes
> back up. looks perfectly up from here (and says the 
same), probably it's just you.

Maxim Dounin

More information about the nginx mailing list