]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.14: document http.ServeFile large file fix for Windows
authorEmmanuel T Odeke <emmanuel@orijtech.com>
Wed, 5 Feb 2020 19:09:34 +0000 (11:09 -0800)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Wed, 5 Feb 2020 19:29:07 +0000 (19:29 +0000)
Document that for Windows, net/http.ServeFile can now
correctly serve files >2GB after we fixed internal/poll.SendFile
to transmit files larger than the default Windows limit of 2GB.

References: CL 192518, CL 194218

Updates #36878

Change-Id: Ibefc8b2841bc0cee3a89884a680085f99d2b6928
Reviewed-on: https://go-review.googlesource.com/c/go/+/217779
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.14.html

index f5e878e9dfb394ec7579eb400ba7716a7ab2c3fb..c863da42fa564cc9b06025c2e5db1c5b97d311ec 100644 (file)
@@ -682,6 +682,11 @@ appropriately.)
       use <code>DialTLSContext</code>, which allows the transport to
       cancel dials as soon as they are no longer needed.
     </p>
+
+    <p><!-- CL 192518, CL 194218 -->
+      On Windows, <a href="/pkg/net/http/#ServeFile"><code>ServeFile</code></a> now correctly
+      serves files larger than 2GB.
+    </p>
   </dd>
 </dl><!-- net/http -->