Skip to content

Commit

Permalink
Ignore ECONNRESET on all sockets opened by the HTTP server.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Vilk committed Jun 14, 2018
1 parent d4b6297 commit f8ea863
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/util/http_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,8 @@ export default function createSimpleServer(files: {[path: string]: TestFile}, po
}
});
httpServer.on('error', ignoreEconnReset);
httpServer.on('connection', (socket) => {
socket.on('error', ignoreEconnReset);
});
});
}

0 comments on commit f8ea863

Please sign in to comment.