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 authored Jul 6, 2021
1 parent ee8965f commit 7c3f017
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 @@ -230,7 +230,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 7c3f017

Please sign in to comment.