Skip to content

TLS Socket leak when making a lot of requests using Proxy URL #162

@BenjD90

Description

@BenjD90

Hello,

I'm having an issue using the library, most of the requests work fine, but over the time I have a leak of socket keeping open :

Image

Image

Those are two metrics provided from prom-client :

The code used to get this result :

  • Using p-queue, make 200 K requests (100 concurrently) using new proxy for each request

Does anyone got a leak like this one before ?
I tried to set all the timeouts on got, and to destroy manually the request stream and response stream, but that didn't change anything 😕

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions