Thursday 13 April 2017

Why does net.connect() give read ECONNRESET but telnet is fine?

var client = net.connect(43, server, function() { client.write(domain + '\n', 'ascii') })yields{ Error: read ECONNRESET at exports._errnoException (util.js:1050:11) at TCP.onread (net.js:581:26) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }However,telnet xxxx 43yieldstelnet xxx 43 Trying xxx... Connected to xxx. Escape character is '^]'.

Submitted April 13, 2017 at 06:07AM by zllovesuki

1 comment: