From 094be09e908d51e730f7c1a9d26e2de66fb61c36 Mon Sep 17 00:00:00 2001 From: Sunshine Date: Sat, 15 Feb 2020 09:09:12 -0500 Subject: [PATCH] add ADR 0003-network-request-timeout.md --- docs/adr/0003-network-request-timeout.md | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/adr/0003-network-request-timeout.md diff --git a/docs/adr/0003-network-request-timeout.md b/docs/adr/0003-network-request-timeout.md new file mode 100644 index 0000000..9e4f3ba --- /dev/null +++ b/docs/adr/0003-network-request-timeout.md @@ -0,0 +1,25 @@ +# 2. Network request timeout + +Date: 2020-02-15 + +## Status + +Accepted + +## Context + +A slow network connection and overloaded server may negatively impact network response time. + +## Decision + +Make the program simulate behavior of popular web browsers and CLI tools, where +the default network response timeout is most often set to 120 seconds. + +Instead of featuring retries for timed out network requests, the program +should have an option to adjust the timeout length, along with making it +indefinite when given "0" as its value. + +## Consequences + +The user is able to retrieve resources that have long response time, as well as obtain +full control over how soon, and if at all, network requests should time out.