http-kit/http-kit — pull request #30 by philipa (2013-03-15 11:03:09+00:00)
Title: Bug fix for race in AsyncChannel

I could reproduce this problem at will.

The async handler would write a response to the channel, the client would immediately send the next request, the server loop would then call reset(), and finally the original handler would clobber headersSent.

Consequently the next response sent was missing its headers.