We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a3ee5b + 7bad008 commit 047443eCopy full SHA for 047443e
lib/server.js
@@ -151,8 +151,10 @@ class Server extends events.EventEmitter {
151
this.clients[client.id] = client;
152
153
// handle socket error to prevent possible app crash, such as ECONNRESET
154
- socket.on('error', () => {
155
- this.error.apply(this, arguments);
+ socket.on('error', (e) => {
+ // ignore frequent ECONNRESET error (seems inevitable when refresh)
156
+ if (e.code === 'ECONNRESET') return;
157
+ this.error.apply(this, e);
158
});
159
160
client.once('info', (data) => {
0 commit comments