Skip to content

Allow BasicHttpPoster to reuse HTTP connections - #379

Merged
phax merged 1 commit into
phax:masterfrom
gregjotau:wt-phase4-reusable-http-client
Aug 3, 2026
Merged

Allow BasicHttpPoster to reuse HTTP connections#379
phax merged 1 commit into
phax:masterfrom
gregjotau:wt-phase4-reusable-http-client

Conversation

@gregjotau

Copy link
Copy Markdown
Contributor

No description provided.

BasicHttpPoster previously constructed and closed a pooled HTTP client for every request, preventing connection reuse across AS4 messages. Add an optional caller-owned manager while preserving the existing per-request lifecycle by default.\n\nCover the behavior with a loopback test that verifies two sends use one TCP connection and that the poster does not close the shared manager.
@gregjotau

Copy link
Copy Markdown
Contributor Author

Consumer impact: phase4 currently creates and closes a pooled HTTP client for every AS4 send, so connections cannot be reused between messages. The optional shared manager preserves the default lifecycle while allowing long-running access points to reuse TCP/TLS connections. The loopback test verifies two sends use the same connection and that the caller-owned manager remains open.

@phax
phax merged commit 2e3d695 into phax:master Aug 3, 2026
3 checks passed
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