Skip to content

error: Uncaught (in promise) "resource closed" #30226

@huseeiin

Description

@huseeiin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ext/fetchrelated to the ext/fetch

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions