File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -525,13 +525,13 @@ recursive function—a regular loop doesn't allow us to stop and wait
525525for an asynchronous action. The ` attempt ` function makes a single
526526attempt to send a request. It also sets a timeout that, if no response
527527has come back after 250 milliseconds, either starts the next attempt
528- or, if this was the fourth attempt, rejects the promise with an
528+ or, if this was the third attempt, rejects the promise with an
529529instance of ` Timeout ` as the reason.
530530
531531{{index idempotence}}
532532
533533Retrying every quarter-second and giving up when no response has come
534- in after a second is definitely somewhat arbitrary. It is even
534+ in after three-quarter second is definitely somewhat arbitrary. It is even
535535possible, if the request did come through but the handler is just
536536taking a bit longer, for requests to be delivered multiple times.
537537We'll write our handlers with that problem in mind—duplicate messages
Original file line number Diff line number Diff line change @@ -58,6 +58,13 @@ <h2>Chapter 10</h2>
5858needs it own private scope“, it should say “< em > its</ em > own private
5959scope“.</ p >
6060
61+ < h2 > Chapter 11</ h2 >
62+
63+ < p > < strong > Page 189/190</ strong > < em > Networks are Hard</ em > : The text
64+ under the code that defines < code > request</ code > claims the function
65+ will give up after four attempts and a second. In fact, it gives up
66+ after three attempts, in three-quarter second.</ p >
67+
6168< h2 > Chapter 14</ h2 >
6269
6370< p > < strong > Page 234</ strong > (2nd) < em > Creating Nodes</ em > : In the
You can’t perform that action at this time.
0 commit comments