summaryrefslogtreecommitdiff
path: root/cli/bench/deno_http_native.js
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2021-05-11 22:06:58 +0000
committerBert Belder <bertbelder@gmail.com>2021-06-23 19:36:05 +0000
commite02403bb4590da6823eb956bcbc89e9a937d431d (patch)
treea7fd05604ee093c63692c6434911300204d3cd32 /cli/bench/deno_http_native.js
parent6f8975ad786e3c8f7cc6fe0f374e704f06741b18 (diff)
ci: run Linux release builds in sysroot with Ubuntu 18.04 and LLVM (#10920)
Diffstat (limited to 'cli/bench/deno_http_native.js')
-rw-r--r--cli/bench/deno_http_native.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/bench/deno_http_native.js b/cli/bench/deno_http_native.js
index 4c06bd7c1..2b576255e 100644
--- a/cli/bench/deno_http_native.js
+++ b/cli/bench/deno_http_native.js
@@ -12,7 +12,11 @@ for await (const conn of listener) {
(async () => {
const requests = Deno.serveHttp(conn);
for await (const { respondWith } of requests) {
- respondWith(new Response(body));
+ try {
+ respondWith(new Response(body));
+ } catch {
+ // Ignore.
+ }
}
})();
}