vetkit.resilience.http-call-without-timeout.py-urlopen
$CALL is called without a timeout. It then falls back to the global socket default, which is no timeout at all unless the process sets one, so an unresponsive server blocks the caller indefinitely.
Last updated:
Suite: Production readiness
python
$CALL is called without a timeout. It then falls back to the global socket default, which is no timeout at all unless the process sets one, so an unresponsive server blocks the caller indefinitely.
Category: RESILIENCE · Engine rule severity: WARNING
How to fix it
Pass timeout= (seconds) to urlopen, or switch to an HTTP client with timeouts (httpx has a default of 5 seconds).
References
Source: packages/engine/rules/resilience/python.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.