Skip to content

dokploy: avoid copying shared HTTP client - #25

Merged
aikins01 merged 1 commit into
devfrom
dokploy/avoid-http-client-copy
Aug 3, 2026
Merged

dokploy: avoid copying shared HTTP client#25
aikins01 merged 1 commit into
devfrom
dokploy/avoid-http-client-copy

Conversation

@aikins01

@aikins01 aikins01 commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Per-request redirect handling shallow-copies the shared http.Client after it may already be in use, which violates net/http's concurrency contract. This constructs a fresh request client with the configured transport, cookie jar, and timeout while retaining the fail-closed redirect policy.

@aikins01 aikins01 self-assigned this Aug 3, 2026
@aikins01
aikins01 merged commit d329282 into dev Aug 3, 2026
8 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.

1 participant