Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node demo.js 的时候报错 timers.js:319 #10

Open
vmvz opened this issue Jun 8, 2017 · 1 comment
Open

node demo.js 的时候报错 timers.js:319 #10

vmvz opened this issue Jun 8, 2017 · 1 comment

Comments

@vmvz
Copy link

vmvz commented Jun 8, 2017

root@debian:~/nodessdb# node --version
v7.10.0

root@debian:~/nodessdb# node demo.js 
timers.js:319
    throw new TypeError('"msecs" argument must be a number');
    ^

TypeError: "msecs" argument must be a number
    at Object.exports.enroll (timers.js:319:11)
    at Socket.setTimeout (net.js:340:12)
    at Socket.<anonymous> (/root/nodessdb/SSDB.js:39:8)
    at Object.onceWrapper (events.js:293:19)
    at emitNone (events.js:91:20)
    at Socket.emit (events.js:188:7)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:10)

@ideawu
Copy link
Contributor

ideawu commented Jun 14, 2017

应该是 connect 方法默认参数在某些 node 版本下有问题。我已经fix了。

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

No branches or pull requests

2 participants