Skip to content

setTimeout controlling the timeout is never cleared on response or error  #361

@geminigeek

Description

@geminigeek

Environment

Node v20.10.0

Reproduction

just make a request with timeout, the node process only ends after the timeout period ends, the timeout is never cleared,
this timeout need to be cleared on response or error

setTimeout(() => controller.abort(), context.options.timeout);

setTimeout(() => controller.abort(), context.options.timeout);

Describe the bug

same as description

Additional context

tried to make PR but the formatting is crazy on my end

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions