Skip to content

Add keep-alive agent to proto client#231

Merged
Donatas-L merged 1 commit into
masterfrom
protoclient/keep-alive-agent
Jul 16, 2026
Merged

Add keep-alive agent to proto client#231
Donatas-L merged 1 commit into
masterfrom
protoclient/keep-alive-agent

Conversation

@Donatas-L

Copy link
Copy Markdown
Contributor

The proto client creates its axios instance with no HTTP agent, so it falls back to Node's global agent and re-pays a full TCP+TLS handshake + slow-start on every request that isn't back-to-back. The REST client already avoids this with a keep-alive agent — the proto client was just missing it.

Fix: add the same agentkeepalive HttpsAgent/HttpAgent (already a dependency) to the
proto client's axios.create. Connections stay warm and get reused across calls.

@Donatas-L
Donatas-L marked this pull request as ready for review July 8, 2026 14:55
@Donatas-L
Donatas-L merged commit dc7aeaf into master Jul 16, 2026
4 of 7 checks passed
@MockusTravelTime
MockusTravelTime deleted the protoclient/keep-alive-agent branch July 16, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants