Answer the question
In order to leave comments, you need to log in
Node.JS: Socket Reuse
I'm trying to run this script:
require('net').createServer().listen('/tmp/test');
Answer the question
In order to leave comments, you need to log in
Due to TIME_WAIT, bind() on a socket may return EADDRINUSE for another 2-4 minutes. In general, node should not pay attention to this, because. all sockets are opened with SO_REUSEADDR.
In your case, you may be advised to do it first.require('fs').unlink('/tmp/test');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question