TooTallNate / node-telnet

Telnet implementation for Node.js
87 stars 30 forks source link

Server crashes, if client sends nonexistent command. #9

Open yernende opened 10 years ago

yernende commented 10 years ago

If client sends nonexistent command, server crashes with such error:

node_modules\telnet\lib\telnet.js:153
  return COMMAND_IMPLS[command](bufs, i + 1, event)
                               ^
TypeError: undefined is not a function

The same error occurs with correct command, but incorrect option.

dazhazit commented 10 years ago

Same for me if I type Control-C in a telnet connection. I get;- TypeError: Property '248' of object # is not a function at parseCommand (C:\CamOnline\branches\Arthur\node_modules\telnet\lib\telnet.js:153:32)

spragchris commented 9 years ago

This is a show-stopper. Control-C from a client crashes the entire server.