Skip to content

Commit 02bcdfb

Browse files
authored
chore: remove unused req_pool_timeout and req_connect_timeout configurations (#505)
Both configuration options were documented and included in the default config, but neither was being read or utilized anywhere in the application logic. This commit removes the dead code to prevent confusion.
1 parent 0a62e03 commit 02bcdfb

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

config/config.exs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ config :llm_db,
9191
config :req_llm,
9292
receive_timeout: 120_000,
9393
stream_receive_timeout: 120_000,
94-
req_connect_timeout: 60_000,
95-
req_pool_timeout: 120_000,
9694
metadata_timeout: 120_000,
9795
thinking_timeout: 300_000
9896

guides/configuration.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ config :req_llm,
1010
# HTTP timeouts (all values in milliseconds)
1111
receive_timeout: 120_000, # Default response timeout
1212
stream_receive_timeout: 120_000, # Streaming chunk timeout
13-
req_connect_timeout: 60_000, # TCP connection timeout
14-
req_pool_timeout: 120_000, # Connection pool checkout timeout
1513
metadata_timeout: 120_000, # Streaming metadata collection timeout
1614
thinking_timeout: 300_000, # Extended timeout for reasoning models
1715
image_receive_timeout: 120_000, # Image generation timeout
@@ -76,22 +74,6 @@ Per-request override:
7674
ReqLLM.stream_text("anthropic:claude-haiku-4-5", "Hello", metadata_timeout: 60_000)
7775
```
7876

79-
### `req_connect_timeout` (default: 60,000ms)
80-
81-
TCP connection establishment timeout.
82-
83-
```elixir
84-
config :req_llm, req_connect_timeout: 30_000
85-
```
86-
87-
### `req_pool_timeout` (default: 120,000ms)
88-
89-
Maximum time to wait for a connection from the pool. Increase for high-concurrency scenarios.
90-
91-
```elixir
92-
config :req_llm, req_pool_timeout: 180_000
93-
```
94-
9577
### `image_receive_timeout` (default: 120,000ms)
9678

9779
Extended timeout specifically for image generation operations, which can take longer than text generation.

0 commit comments

Comments
 (0)