Skip to content

feat!: reuse TCP connection by default#134

Open
figueredo wants to merge 1 commit into
masterfrom
feat/keep-alive-true
Open

feat!: reuse TCP connection by default#134
figueredo wants to merge 1 commit into
masterfrom
feat/keep-alive-true

Conversation

@figueredo
Copy link
Copy Markdown
Contributor

Change TCP connection reuse to be default behavior so that clients have better performance with less configuration.

@figueredo figueredo self-assigned this May 15, 2026
Copilot AI review requested due to automatic review settings May 15, 2026 19:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes the SDK’s HTTP behavior so TCP connection reuse is enabled by default, improving request performance without requiring extra client configuration.

Changes:

  • Updates RequestManager to default keepAlive to true.
  • Adds tests covering the new default and explicit opt-out behavior.
  • Updates README option documentation to reflect the new default.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/request.ts Changes the internal HTTPS agent default to enable keep-alive.
test/request.test.ts Adds coverage for default keep-alive behavior and disabling it.
README.md Updates documented keepAlive default from false to true.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@figueredo figueredo force-pushed the feat/keep-alive-true branch from a93cc19 to c48ebfa Compare May 15, 2026 21:45
@figueredo figueredo changed the title feat: reuse TCP connection by default feat!: reuse TCP connection by default May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants