Skip to content

Commit 82c7b46

Browse files
committed
Ch. 21: call out Chrome issue
1 parent 691c958 commit 82c7b46

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/ch21-01-single-threaded.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,17 @@ It could also be that the browser is trying to connect to the server multiple
109109
times because the server isn’t responding with any data. When `stream` goes out
110110
of scope and is dropped at the end of the loop, the connection is closed as
111111
part of the `drop` implementation. Browsers sometimes deal with closed
112-
connections by retrying, because the problem might be temporary. The important
113-
factor is that we’ve successfully gotten a handle to a TCP connection!
112+
connections by retrying, because the problem might be temporary.
113+
114+
Browsers also sometimes open multiple connections to the server without sending
115+
any requests, so that if they *do* later send requests, they can happen faster.
116+
When this happens, our server will see each connection, regardless of whether
117+
there are any requests over that connection. Many versions of Chrome-based
118+
browsers do this, for example; you can disable that optimization by using =
119+
private browsing mode or use a different browser.
120+
121+
The important factor is that we’ve successfully gotten a handle to a TCP
122+
connection!
114123

115124
Remember to stop the program by pressing <kbd>ctrl</kbd>-<kbd>c</kbd> when
116125
you’re done running a particular version of the code. Then restart the program

0 commit comments

Comments
 (0)