felixge/node-couchdb — Issue #33: db.changesStream crashes in node 0.4.12
Author: bas-velthuizen
Created: 2011-11-02 16:16:38+00:00
State: open

The http Client created by the db.changesStream does not have a setTimeout method.
When calling this method I get the following stack trace:

node.js:205
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object # has no method 'setTimeout'
at [object Object].changesStream (/Users/bas/src/nodeJS/submitservice/service/node_modules/felix-couchdb/lib/couchdb.js:590:10)
at Object. (/Users/bas/src/nodeJS/submitservice/service/index.js:311:16)
at Module._compile (module.js:416:26)
at Object..js (module.js:434:10)
at Module.load (module.js:335:31)
at Function._load (module.js:294:12)
at Array. (module.js:454:10)
at EventEmitter._tickCallback (node.js:197:26)

Should the code be rewritten to use the newer http.clientRequest and http.clientResponse functionality that support connection timeouts? If so, I volunteer to try to do that. If it is not necessary, let me know.