Skip to content

Telnet server crashes when CTRL-C pressed in linux telnet client #1

Description

@doughsay

Running the example in the README and connecting to it using "$ telnet localhost 23" on linux, and then hitting CTRL-C to exit the telnet session, causes the server to crash with this error:

/home/chris/src/test/node_modules/telnet/lib/telnet.js:153
  return COMMAND_IMPLS[command](bufs, i + 1, event)
                               ^
TypeError: Property '244' of object #<Object> is not a function
    at parseCommand (/home/chris/src/test/node_modules/telnet/lib/telnet.js:153:32)
    at parse (/home/chris/src/test/node_modules/telnet/lib/telnet.js:146:10)
    at Socket.<anonymous> (/home/chris/src/test/node_modules/telnet/lib/telnet.js:201:11)
    at Socket.emit (events.js:67:17)
    at TCP.onread (net.js:367:14)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions