error: Uncaught (in promise) "resource closed"
Version: Deno 2.4.2
Reproduction
deno run -A npm:create-solid@latest
select SolidStart, Yes for TypeScript and basic for the template
then install dependencies, build with deno-server preset:
import { defineConfig } from "@solidjs/start/config";
export default defineConfig({ server: { preset: "deno-server" } });
after running the server with deno task --config .output/deno.json start, run this code:
for (let index = 0; index < 10_000_000; index++) {
const a = new AbortController();
await fetch("http://localhost:3000", { signal: a.signal });
a.abort();
}
you'll see the server crash with the error.
full logs?
full logs?
[unhandledRejection] [object PromiseRejectionEvent]
error: Uncaught (in promise) "resource closed"
i think this doesn't happen anymore but the performance got degraded, its now slower than node. any confirms @bartlomieju?
Can you be more specific? What exactly has degraded? Do you have a benchmark you can share?
Can you be more specific? What exactly has degraded? Do you have a benchmark you can share?
oha -n 10000 http://localhost:3000 with the reproduction in the original post