File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,17 @@ It could also be that the browser is trying to connect to the server multiple
109109times because the server isn’t responding with any data. When ` stream ` goes out
110110of scope and is dropped at the end of the loop, the connection is closed as
111111part 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
115124Remember to stop the program by pressing <kbd >ctrl</kbd >-<kbd >c</kbd > when
116125you’re done running a particular version of the code. Then restart the program
You can’t perform that action at this time.
0 commit comments