vetkit.resilience.http-call-without-timeout.php-guzzle
GuzzleHttp\Client is created without a timeout. Guzzle's default of 0 waits indefinitely, so a slow or unresponsive upstream holds the PHP worker serving this request until the web server kills it.
Last updated:
Suite: Production readiness
php
GuzzleHttp\Client is created without a timeout. Guzzle's default of 0 waits indefinitely, so a slow or unresponsive upstream holds the PHP worker serving this request until the web server kills it.
Category: RESILIENCE · Engine rule severity: INFO
How to fix it
Pass 'timeout' (total seconds) and 'connect_timeout' in the client options, for example new Client(['base_uri' => $url, 'timeout' => 10, 'connect_timeout' => 3]).
References
Source: packages/engine/rules/resilience/php.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.