Skip to content

Conversation

harshithad0703
Copy link
Contributor

@harshithad0703 harshithad0703 commented Sep 9, 2025

  • Add 30-second timeout configuration to prevent indefinite connection hangs
  • Implement enhanced error handling with automatic retry logic for ECONNRESET
  • Update network connectivity detection to include socket hang up errors

Fixes socket hang up issues occurring in Kubernetes/Istio environments
where connections are dropped by load balancers or proxy timeouts.

Changes:

  • src/api.ts: Add timeout config and retry logic for socket hang ups
  • src/core/inet.ts: Expand network error detection to include ECONNRESET

Resolves production errors:
'Error: socket hang up at TLSSocket.socketOnEnd (node:_http_client:528:25)'

@harshithad0703 harshithad0703 requested a review from a team as a code owner September 9, 2025 11:22
@harshithad0703 harshithad0703 marked this pull request as draft September 9, 2025 11:22
@harshithad0703 harshithad0703 marked this pull request as ready for review September 10, 2025 11:37
@harshithad0703 harshithad0703 merged commit 8776fa9 into development Sep 10, 2025
9 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.

4 participants