Closed navaru closed 9 years ago
@TEugen while it may seemingly fix the issue, this is not a solution to this problem. self.connect
still needs to be called in order to re-setup the proper listeners and create a NEW socket. In this function we could potentially keep a reference around of the unix path in order to pass the correct thing back into self.connect
. See if you can implement it with that strategy and I'll review
Because the
port
is parsed insock.connect(port, host)
and theunix://
part of the string is removed, on reconnection passing the same variableport
to the same function again will throw an error in node'snet.js
: