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
525
525
for an asynchronous action. The ` attempt ` function makes a single
526
526
attempt to send a request. It also sets a timeout that, if no response
527
527
has 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
529
529
instance of ` Timeout ` as the reason.
530
530
531
531
{{index idempotence}}
532
532
533
533
Retrying 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
535
535
possible, if the request did come through but the handler is just
536
536
taking a bit longer, for requests to be delivered multiple times.
537
537
We'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>
58
58
needs it own private scope“, it should say “< em > its</ em > own private
59
59
scope“.</ p >
60
60
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
+
61
68
< h2 > Chapter 14</ h2 >
62
69
63
70
< p > < strong > Page 234</ strong > (2nd) < em > Creating Nodes</ em > : In the
You can’t perform that action at this time.
0 commit comments