Closed ghost closed 6 years ago
What happens if you bind
then immediately close
without waiting for sigint?
Same.
const nn = require('nanomsg');
const push = nn.socket('push');
push.bind('ipc:///tmp/server.ipc');
console.log(push.close())
First run returned 0
Second run throw error Error: Address already in use
I check this case on Centos 7 and it is the same behavior.
Example:
Run
node test.js
and pressCtrl + c
. push.close() return0
but/tmp/server.ipc
is not deleted and re-run I cant't.node: 8.9.3 node-nanomsg: 4.0.0 OS X 10.13.1