1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Shared network timeout constants.
//!
//! Centralised [`Duration`] values for HTTP client configuration, TCP
//! readiness probes, and long-poll image generation, so every caller
//! uses the same tuned timeouts.
use Duration;
pub const HTTP_CONNECT_TIMEOUT: Duration = from_secs;
pub const HTTP_DEFAULT_TIMEOUT: Duration = from_secs;
pub const HTTP_HEALTH_CHECK_TIMEOUT: Duration = from_secs;
pub const HTTP_AUTH_VERIFY_TIMEOUT: Duration = from_secs;
pub const HTTP_SYNC_DEPLOY_TIMEOUT: Duration = from_secs;
pub const HTTP_STREAM_CONNECT_TIMEOUT: Duration = from_secs;
pub const HTTP_KEEPALIVE: Duration = from_secs;
pub const HTTP_POOL_IDLE_TIMEOUT: Duration = from_secs;
pub const AGENT_MONITOR_TCP_TIMEOUT: Duration = from_secs;
pub const AGENT_READINESS_TCP_TIMEOUT: Duration = from_secs;
pub const IMAGE_GEN_LONG_POLL_TIMEOUT: Duration = from_secs;
pub const IMAGE_GEN_OPENAI_TIMEOUT: Duration = from_secs;
/// Default per-attempt timeout for a non-streaming AI provider request.
pub const AI_PROVIDER_REQUEST_TIMEOUT: Duration = from_secs;
/// Default maximum gap between two chunks of a streaming AI response.
pub const AI_STREAM_IDLE_TIMEOUT: Duration = from_secs;
/// Default timeout for a single MCP tool-call RPC (excludes connection setup).
pub const MCP_TOOL_EXECUTION_TIMEOUT: Duration = from_secs;