mirror of
https://github.com/minio/minio.git
synced 2024-12-28 16:15:56 -05:00
b5177993b3
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. |
||
---|---|---|
.. | ||
deadlineconn_test.go | ||
deadlineconn.go |