File tree 1 file changed +11
-2
lines changed
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
109
109
times because the server isn’t responding with any data. When ` stream ` goes out
110
110
of scope and is dropped at the end of the loop, the connection is closed as
111
111
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!
114
123
115
124
Remember to stop the program by pressing <kbd >ctrl</kbd >-<kbd >c</kbd > when
116
125
you’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