Skip to content

Conversation

@SamDecrock
Copy link

First one is a real fix.
Second one is a hack, because I have no idea what the http parser wants to do with the socket object.
So I just gave it an empty socket object :-)

@rv-kip
Copy link

rv-kip commented Aug 31, 2012

The fix for issue #3 looks good. I did a different hack to fix and provided the dgram socket. Not sure which is correct.

...
self.requestParser = http.parsers.alloc();
self.requestParser.socket = self.server;
self.requestParser.reinitialize('request');
...

@luto
Copy link

luto commented Aug 30, 2013

Works for me. Thanks @SamDecrock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants