]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: add more docs on ErrHijacked
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 16 Oct 2016 09:27:29 +0000 (10:27 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 17 Oct 2016 05:56:43 +0000 (05:56 +0000)
Updates #16456

Change-Id: Ifea651ea3ece2267a6f0c1638181d6ddd9248a9f
Reviewed-on: https://go-review.googlesource.com/31181
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/http/server.go

index d71006441eb766fdccd9ab80b68d909d836a5891..f102488310a202d51a91c3d1246af0b79231f85c 100644 (file)
@@ -40,7 +40,9 @@ var (
 
        // ErrHijacked is returned by ResponseWriter.Write calls when
        // the underlying connection has been hijacked using the
-       // Hijacker interfaced.
+       // Hijacker interface. A zero-byte write on a hijacked
+       // connection will return ErrHijacked without any other side
+       // effects.
        ErrHijacked = errors.New("http: connection has been hijacked")
 
        // ErrContentLength is returned by ResponseWriter.Write calls