diff --git a/http/server.ts b/http/server.ts index d01d4c1a3777..fe4f5269ee3c 100644 --- a/http/server.ts +++ b/http/server.ts @@ -230,7 +230,8 @@ export class Server implements AsyncIterable { // 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)); }