Skip to content

Conversation

viktorking7
Copy link

  • Summary: Ensure robust networking by setting explicit HTTP client and transport timeouts; stop using http.DefaultClient when TLS is disabled.
  • Changes:
    • Add net import.
    • Configure http.Client Timeout (30s).
    • Configure http.Transport: Dial timeout (10s), TLS handshake (10s), response header (20s), expect-continue (1s), idle (90s), max idle conns (100).
    • Preserve TLS settings (TLS 1.3 min, RootCAs, dynamic client cert via certman).
  • Motivation: Prevent indefinite hangs and resource leakage under network failures or slow peers.
  • Impact: Safer, more predictable network behavior; no functional API change intended.

@viktorking7 viktorking7 requested a review from a team as a code owner September 25, 2025 14:08
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