Skip to content
Sharp

Networking · interview question

Why is it important to set timeouts on HTTP requests?

Multiple choiceMediumchapter-11-curatedpremiumnetworkingasynchronous-http
Choose one answer
Answer and explanation

Correct answer

A. To prevent indefinite blocking of resources.

Why

Setting timeouts on HTTP requests prevents indefinite blocking, ensuring that resources are not tied up waiting for a response that may never arrive, which is crucial for maintaining application responsiveness.

Test yourself on Networking

A free test with instant, explained results. No account needed.

Start free test
All Networking questions →