File tree 1 file changed +6
-1
lines changed 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -655,9 +655,14 @@ var (
655
655
errTooManyIdleHost = errors .New ("http: putIdleConn: too many idle connections for host" )
656
656
errCloseIdleConns = errors .New ("http: CloseIdleConnections called" )
657
657
errReadLoopExiting = errors .New ("http: persistConn.readLoop exiting" )
658
- errServerClosedIdle = errors .New ("http: server closed idle connection" )
659
658
errIdleConnTimeout = errors .New ("http: idle connection timeout" )
660
659
errNotCachingH2Conn = errors .New ("http: not caching alternate protocol's connections" )
660
+
661
+ // errServerClosedIdle is not seen by users for idempotent requests, but may be
662
+ // seen by a user if the server shuts down an idle connection and sends its FIN
663
+ // in flight with already-written POST body bytes from the client.
664
+ // See https://github.com/golang/go/issues/19943#issuecomment-355607646
665
+ errServerClosedIdle = errors .New ("http: server closed idle connection" )
661
666
)
662
667
663
668
// transportReadFromServerError is used by Transport.readLoop when the
You can’t perform that action at this time.
0 commit comments