Skip to content

Commit

Permalink
fix(http/server): Swallow NotConnected errors from listener.accept()
Browse files Browse the repository at this point in the history
  • Loading branch information
nayeemrmn committed Feb 26, 2021
1 parent f285c79 commit 56c3158
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ export class Server implements AsyncIterable<ServerRequest> {
// TLS handshake errors:
error instanceof Deno.errors.InvalidData ||
error instanceof Deno.errors.UnexpectedEof ||
error instanceof Deno.errors.ConnectionReset
error instanceof Deno.errors.ConnectionReset ||
error instanceof Deno.errors.NotConnected
) {
return mux.add(this.acceptConnAndIterateHttpRequests(mux));
}
Expand Down

0 comments on commit 56c3158

Please sign in to comment.