Skip to content

doc: http.Agent, reuse single socket vs new socket for each request#36463

Description

@ha-douken

馃摋 http.Agent, reuse single socket vs new socket for each request

http.Agent documentation says
[鈥 It maintains a queue of pending requests for a given host and port, reusing a single socket connection for each until the queue is empty [鈥
Which is in contrast to the description of the maxSockets option
[鈥 Each request will use a new socket until the maximum is reached. []

So will it reuse a single socket connection or use a new socket for each request?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.httpIssues and PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions