benschmaus / nodeload

HTTP load/traffic generator and benchmark tool built on Node.js
MIT License
399 stars 73 forks source link

Object #<Client> has no method 'destroy' #15

Open cedriclombardot opened 12 years ago

cedriclombardot commented 12 years ago

Hi,

When i run the quick start sample https://github.com/benschmaus/nodeload/blob/master/doc/nodeload.md, i have the next error :

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
TypeError: Object #<Client> has no method 'destroy'
    at /var/local/webroot/bookmarks-node/node_modules/nodeload/nodeload.js:9:506
    at Client.<anonymous> (/var/local/webroot/bookmarks-node/node_modules/nodeload/nodeload.js:10:180)
    at Client.emit (events.js:88:20)
    at ClientRequest.<anonymous> (http.js:1511:10)
    at ClientRequest.emit (events.js:67:17)
    at Socket.<anonymous> (http.js:1114:11)
    at Socket.emit (events.js:67:17)
    at Array.0 (net.js:301:25)
    at EventEmitter._tickCallback (node.js:192:40)

I use node v0.6.5

Thanks in advance

nponeccop commented 12 years ago

+1. The bug still happens with node v0.6.12

sarenji commented 12 years ago

+1. Node v0.6.14 has the same problem.

thegoleffect commented 12 years ago

The pull request 16, https://github.com/benschmaus/nodeload/pull/16, has a fix for this issue.

shelleyp commented 12 years ago

Question: is this module still supported by the original author? I need to know before I include mention in my book.