concept timeout in category security

appears as: timeouts, timeout
Secure by Design

This is an excerpt from Manning's book Secure by Design.

When you make a call to another service, it’s important to specify a timeout for that request. If an integration point is unresponsive, you don’t want your application to hang forever, waiting for a response, because that eventually makes your system unstable. Because both timeouts and circuit breakers deal with protecting a system when making requests to other systems, they typically go hand-in-hand. It’s common for implementations of circuit breakers to track timeouts separately and sometimes to even provide built-in functionality for managing timeouts for requests.

Always specify a timeout

In Java, for example, the default timeout for a network call is infinite—meaning that if a timeout isn’t explicitly set, a network call waits forever for a response. As a result, the number of systems that have turned into unresponsive memory hogs due to unresponsive integration points is almost infinite too. Whatever environment you’re in, whatever programming language or framework you use, always make sure you explicitly set a timeout for all your network requests.