Skip to content

KeepAlive for @sentry/node transports #2555

Closed
@rhcarvalho

Description

@rhcarvalho

In #1795 the transports changed from keepAlive: true to keepAlive: false. The reason had to do with memory leaks in old versions of Node.

keepAlive: false is undesirable because it incurs more overhead (re-)establishing TCP connections instead of keeping idle connections in the pool.

https://nodejs.org/dist/latest-v12.x/docs/api/http.html#http_class_http_agent

I propose we set keepAlive: true, at least for recent versions of Node.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions