node-mongolian
node-mongolian copied to clipboard
Changed new Socket to net.createConnection to fix performance issues on Linux
Had to refactor the connection handling a bit because the Socket needs to be created when calling connect now because internally net.createConnection
creates a Socket and then calls connect on it right away. Therefore the settings and configuration of the socket had to be moved into the connect function.
All tests passes and it's verified to give a performance boost on linux.