minio/internal/deadlineconn
Klaus Post b5177993b3
Make DeadlineConn http.Listener compatible (#20635)
HTTP likes to slap an infinite read deadline on a connection and 
do a blocking read while the response is being written.

This effectively means that a reading deadline becomes the 
request-response deadline.

Instead of enforcing our timeout, we pass it through and keep 
"infinite deadline" is sticky on connections.

However, we still "record" when reads are aborted, so we never overwrite that.

The HTTP server should have `ReadTimeout` and `IdleTimeout` set for the deadline to be effective.

Use --idle-timeout for incoming connections.
2024-11-12 12:41:41 -08:00
..
deadlineconn.go Make DeadlineConn http.Listener compatible (#20635) 2024-11-12 12:41:41 -08:00
deadlineconn_test.go Harden internode DeadlineConn (#20631) 2024-11-11 09:15:17 -08:00