We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e3597 commit 2e06438Copy full SHA for 2e06438
src/Server.ts
@@ -83,9 +83,13 @@ class Server extends EventEmitter<Server.Events> {
83
this.errors._get(ServerErrorRegistry.ErrorCodes.BAD_URL, null)._send(res, this);
84
return;
85
}
86
+
87
if (e instanceof Request.SocketClosedError)
88
- throw e;
89
90
+ this.emit("error", e as any);
91
+ this.errors._get(ServerErrorRegistry.ErrorCodes.INTERNAL, null)._send(res, this);
92
+ return;
93
94
95
for (const [key, value] of this.globalHeaders)
0 commit comments