docs: update default timeout from 3 seconds to 5 seconds

This commit is contained in:
Omkar Birade 2024-09-16 22:37:00 +02:00
parent 233f97accd
commit 85b4dbfe15
No known key found for this signature in database
GPG Key ID: F189F9D97214829B
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ type Options struct {
DialTimeout time.Duration DialTimeout time.Duration
// Timeout for socket reads. If reached, commands will fail // Timeout for socket reads. If reached, commands will fail
// with a timeout instead of blocking. Supported values: // with a timeout instead of blocking. Supported values:
// - `0` - default timeout (3 seconds). // - `0` - default timeout (5 seconds).
// - `-1` - no timeout (block indefinitely). // - `-1` - no timeout (block indefinitely).
// - `-2` - disables SetReadDeadline calls completely. // - `-2` - disables SetReadDeadline calls completely.
ReadTimeout time.Duration ReadTimeout time.Duration