1
0
mirror of https://github.com/golang/go synced 2024-11-15 07:20:45 -07:00

http: fix some comments typo in server.go

Change-Id: I826412175876a84ab978aba9418be28593484fba
GitHub-Last-Rev: d35753c7e0
GitHub-Pull-Request: golang/go#67112
Reviewed-on: https://go-review.googlesource.com/c/go/+/582435
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
The Backend Grip 2024-04-29 22:28:11 +00:00 committed by Damien Neil
parent 476a352522
commit 3206a9b562

View File

@ -224,7 +224,7 @@ type CloseNotifier interface {
// that the channel receives a value. // that the channel receives a value.
// //
// If the protocol is HTTP/1.1 and CloseNotify is called while // If the protocol is HTTP/1.1 and CloseNotify is called while
// processing an idempotent request (such a GET) while // processing an idempotent request (such as GET) while
// HTTP/1.1 pipelining is in use, the arrival of a subsequent // HTTP/1.1 pipelining is in use, the arrival of a subsequent
// pipelined request may cause a value to be sent on the // pipelined request may cause a value to be sent on the
// returned channel. In practice HTTP/1.1 pipelining is not // returned channel. In practice HTTP/1.1 pipelining is not
@ -1102,9 +1102,9 @@ func (w *response) Header() Header {
// maxPostHandlerReadBytes is the max number of Request.Body bytes not // maxPostHandlerReadBytes is the max number of Request.Body bytes not
// consumed by a handler that the server will read from the client // consumed by a handler that the server will read from the client
// in order to keep a connection alive. If there are more bytes than // in order to keep a connection alive. If there are more bytes
// this then the server to be paranoid instead sends a "Connection: // than this, the server, to be paranoid, instead sends a
// close" response. // "Connection close" response.
// //
// This number is approximately what a typical machine's TCP buffer // This number is approximately what a typical machine's TCP buffer
// size is anyway. (if we have the bytes on the machine, we might as // size is anyway. (if we have the bytes on the machine, we might as