Skip to content

responseTimeout timer is not cleared on request error #39

@antishok

Description

@antishok

If you set a responseTimeout on a request, and then, before the responseTimeout has elapsed, the request has an error (e.g. connection timeout), then the responseTimeout timer is not cleared.
This can cause issues like a hanging process, or memory leaks.

I believe it just needs adding a clearTimeout in the req.on("error") handler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions