hbons/SparkleShare — Issue #563: fanout.js dies on port scan
Author: radioactiv
Created: 2012-01-27 15:52:17+00:00
State: open

fanout.js throws an uncaughtException (connection reset by peer) if the server is scanned using nmap.

27 Jan 08:44:44 - info: client connected!
27 Jan 08:44:44 - info: adding sub: all
27 Jan 08:44:44 - info: removing sub
27 Jan 08:44:44 - info: subs:["all"]
27 Jan 08:44:44 - error: uncaughtException pid=7244, uid=0, gid=0, cwd=/www/sparkleshare/htdocs, execPath=/usr/bin/node, version=v0.4.2, argv=[node, /www/sparkleshare/htdocs/fanout.js], rss=11706368, vsize=663490560, heapTotal=5325056, heapUsed=3379408, loadavg=[0.05078125, 0.15283203125, 0.16943359375], uptime=1114765, trace=[column=14, file=net.js, function=Socket._writeImpl, line=138, method=_writeImpl, native=false, column=25, file=net.js, function=Socket._writeOut, line=427, method=_writeOut, native=false, column=17, file=net.js, function=Socket.write, line=356, method=write, native=false, column=16, file=/www/sparkleshare/htdocs/fanout.js, function=, line=148, method=null, native=false, column=17, file=events.js, function=Socket.emit, line=39, method=emit, native=false, column=11, file=net.js, function=IOWatcher.callback, line=917, method=callback, native=false], stack=[Error: ECONNRESET, Connection reset by peer, at Socket._writeImpl (net.js:138:14), at Socket._writeOut (net.js:427:25), at Socket.write (net.js:356:17), at Socket. (/www/sparkleshare/htdocs/fanout.js:148:16), at Socket.emit (events.js:39:17), at IOWatcher.callback (net.js:917:11)]