pub const PLUGIN_TIMEOUT_BUFFER_SECONDS: u64 = 4;Expand description
Extra seconds added to the Rust-side timeout so both Node.js timeout layers fire first. The timeout hierarchy for a plugin with timeout T is:
- Handler (pool-executor.ts): T — structured TIMEOUT response
- Worker-pool safety net: T + 2s — catches stuck workers
- Rust backstop (this buffer): T + 4s — catches hung Node.js process