Skip to content

Commit

Permalink
feat: swallow NotConnected error from accept()
Browse files Browse the repository at this point in the history
  • Loading branch information
cmorten committed Aug 13, 2021
1 parent ef987c4 commit b6b632a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http/native_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,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 b6b632a

Please sign in to comment.