Skip to content

Commit 9ae2dae

Browse files
committed
Fix inconsistency between definition of request and text
Closes marijnh#511
1 parent 3dc9373 commit 9ae2dae

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

11_async.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,13 +525,13 @@ recursive function—a regular loop doesn't allow us to stop and wait
525525
for an asynchronous action. The `attempt` function makes a single
526526
attempt to send a request. It also sets a timeout that, if no response
527527
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
529529
instance of `Timeout` as the reason.
530530

531531
{{index idempotence}}
532532

533533
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
535535
possible, if the request did come through but the handler is just
536536
taking a bit longer, for requests to be delivered multiple times.
537537
We'll write our handlers with that problem in mind—duplicate messages

html/errata.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ <h2>Chapter 10</h2>
5858
needs it own private scope“, it should say “<em>its</em> own private
5959
scope“.</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

0 commit comments

Comments
 (0)