Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

loop in client can force stack overflow in server #1278

Closed
simon-lang opened this issue Jul 16, 2013 · 0 comments
Closed

loop in client can force stack overflow in server #1278

simon-lang opened this issue Jul 16, 2013 · 0 comments

Comments

@simon-lang
Copy link

RangeError: Maximum call stack size exceeded

Reproduced on several different OSX and Linux machines with the following code.

server.coffee

io = require('socket.io').listen 8080
io.set 'log level', 0
io.sockets.on 'connection', (socket) ->
  socket.on 'ping', (data) ->
    socket.disconnect()

client.coffee

io = require 'socket.io-client'
socket = io.connect '127.0.0.1:8080'
socket.on 'connect', ->
  while true
    socket.emit 'ping'

Using:

socket.io v0.9.16

socket.io-client v0.9.11

This issue was closed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant