Skip to content

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Jan 19, 2026

Why

The HTTP client uses a raw TcpStream without read/write timeouts, so requests can block indefinitely if the server (or network) becomes unresponsive.

What

  • Configure a 30s read + write timeout on the client TcpStream for /search, /embed_batch, and /health.
  • Add a small unit test to ensure timeouts are applied.

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