You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The node.js process should terminate exactly 1 second after a client connects. Instead, it takes 26 seconds.
Given this server:
io=require'socket.io's=io.listen4321s.sockets.on'connection', (socket) ->console.log'new connection'console.log'client connected. Server will close in 1 second...'
setTimeout (->s.server.close()), 1000
$ time coffee server.coffee
info - socket.io started
debug - client authorized
info - handshake authorized 21153209321339684377
debug - setting request GET /socket.io/1/websocket/21153209321339684377
debug - set heartbeat interval for client 21153209321339684377
debug - client authorized for
debug - websocket writing 1::
new connection
client connected. Server will close in 1 second...
debug - websocket received data packet 5:1+::{"name":"newListener","args":["connect"]}
debug - websocket received data packet 0::
debug - got disconnection packet
info - transport end by forced client disconnection
debug - websocket writing 0::
info - transport end
debug - set close timeout for client 21153209321339684377
debug - cleared close timeout for client 21153209321339684377
debug - cleared heartbeat interval for client 21153209321339684377
debug - discarding transport
real 0m26.230s
user 0m0.294s
sys 0m0.043s
The text was updated successfully, but these errors were encountered:
The node.js process should terminate exactly 1 second after a client connects. Instead, it takes 26 seconds.
Given this server:
... and this client:
.... this is what happens:
The text was updated successfully, but these errors were encountered: