-
Notifications
You must be signed in to change notification settings - Fork 7.3k
EINVAL error #804
Comments
ubuntu? (curious) |
Yes. Ubuntu 10.10.
|
interesting... people keep having this with issue with cluster on Ubuntu, perhaps it really is not cluster's fault, I still haven't had time to look. Can you post a gist of your code? or at least enough to reproduce this error |
var tls = require('tls'),
fs = require('fs'),
crypto = require('crypto');
var options = {
key: fs.readFileSync('cert/key.pem'),
cert: fs.readFileSync('cert/cert.pem')
};
var server = tls.createServer(options, function(s) {
});
server.on('error', function(e) {
console.log('server down suddenly: ' + e);
server.close();
server.listen(port);
});
server.listen(10000); |
closed by accident? Please reopen. Also see LearnBoost/cluster#47 |
same problem on: node v0.4.6, no any server features used |
I'm seeing the same issue intermittently on 0.4.6 on Ubuntu 10.04.2. I haven't found the exact conditions that cause it, I just see it in my logs occasionally. I'm not using cluster, so I don't think it's a cluster issue. Will post if I can catch exactly why it happens |
Similar problem here
Node 0.4.9 / Debian |
Can anyone confirm / deny this happening on master? Note to self: possibly a race between |
Just a workaround, but sometimes (not always) sudden death of a process can be prevent by adding 'error' handler before opening socket. If there is no error handler, nodejs process dies without recover, but if a error handler is attached, the error is caught by handler and could be handled safely. It could be applied to not only a socket connection, but all kinds of network-related functions like TLS or HTTP. |
Same error here on Virtual Machine Ubuntu OS while crawling websites |
I haven't been able to reproduce this issue on v0.8.15. |
I can't find the commit but this was fixed late in v0.4's life cycle. Closing. |
v0.10.20 on cygwin |
@vikrama Have a reproducible test case? Also, I don't think we officially support cygwin anymore now that Node has native Windows support. |
I'm now building nodejs socket server, and this error kills my server.
I also added 'error' handler to my server, but it doesn't works for me.
The text was updated successfully, but these errors were encountered: