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
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
varassert=require('assert');varnet=require('net');varserver=net.createServer();server.listen(function(){varclient=net.createConnection(server.address().port);// server's connect event has not yet firedserver.close();assert.doesNotThrow(function(){client.remoteAddress;client.remotePort;});process.exit(0);});
Accessing either client.remoteAddress or client.remotePort will throw from net.js. I have noticed this crash with SockJS immediately after I kill a connected browser sending lots of data over a WebSocket.
Consider the following code:
Accessing either
client.remoteAddressorclient.remotePortwill throw from net.js. I have noticed this crash with SockJS immediately after I kill a connected browser sending lots of data over a WebSocket.I'm working on a patch with a new test.