node 0.6.17 TypeErrors at http.js:1163

Showing 1-4 of 4 messages
node 0.6.17 TypeErrors at http.js:1163 Subbu Allamaraju 5/6/12 10:33 PM
Hi,

I just upgraded from 0.6.16 to 0.6.17, and I'm noticing some new messages pop up when I'm running some stress tests that introduce some network delays and failures. I don't have an isolated case yet, but it seems to indicate some out of order handling between errorListener and closeListener in http.js. The error does not occur in 0.6.16. Has anyone seen similar behavior?

Subbu

TypeError: Cannot call method 'emit' of null
    at Socket.<anonymous> (http.js:1163:11)
    at Socket.emit (events.js:67:17)
    at Array.1 (net.js:301:14)
    at EventEmitter._tickCallback (node.js:192:40)
error: TypeError: Cannot call method 'emit' of null
error: TypeError: Cannot call method 'emit' of null
    at Socket.<anonymous> (http.js:1163:11)
    at Socket.emit (events.js:67:17)
    at Array.1 (net.js:301:14)
    at EventEmitter._tickCallback (node.js:192:40)
TypeError: Cannot call method 'emit' of null
    at Socket.<anonymous> (http.js:1163:11)
    at Socket.emit (events.js:67:17)
    at Array.1 (net.js:301:14)
    at EventEmitter._tickCallback (node.js:192:40)
Re: [nodejs] node 0.6.17 TypeErrors at http.js:1163 Ben Noordhuis 5/7/12 7:43 AM
Oh dear. We fixed a couple of memory leaks / object leaks in 0.6.17
but it looks like we introduced some regressions. Can you open an
issue? Thanks.
Re: [nodejs] node 0.6.17 TypeErrors at http.js:1163 Subbu Allamaraju 5/7/12 8:20 AM
Here is my test client.


    var clientReq = http.request(options, function (clientRes) {
        ...
    });
    clientReq.setTimeout(1000, function () {
        clientReq.connection.destroy();
        ...
    });

Destroying the socket during the timeout causes this error. I will open an issue.

Subbu
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

Re: [nodejs] node 0.6.17 TypeErrors at http.js:1163 Isaac Schlueter 5/7/12 6:43 PM
Fixed on v0.6 branch.  It'll be updated in the next release.