minio/internal/http
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
..
check_port_linux.go add configurable VRF interface and user-timeout (#17108) 2023-05-03 14:12:25 -07:00
check_port_others.go add configurable VRF interface and user-timeout (#17108) 2023-05-03 14:12:25 -07:00
check_port_test.go add configurable VRF interface and user-timeout (#17108) 2023-05-03 14:12:25 -07:00
close.go add codespell action (#18818) 2024-01-17 23:03:17 -08:00
dial_dnscache.go fix: upon DNS refresh() failure use previous values (#17561) 2023-07-03 12:30:51 -07:00
dial_linux.go add optimizations to bring performance on unversioned READS (#20128) 2024-07-23 03:53:03 -07:00
dial_others.go simplify listener implementation setup customizations in right place (#19589) 2024-04-23 21:08:47 -07:00
headers.go add more details on the payload sent to webhook audit (#20335) 2024-08-28 08:31:56 -07:00
lambda-headers.go feat: add lambda transformation functions target (#16507) 2023-03-07 08:12:41 -08:00
listener.go Make DeadlineConn http.Listener compatible (#20635) 2024-11-12 12:41:41 -08:00
listener_test.go add changes to Makefile to support dev build 2024-06-10 10:41:02 -07:00
request-recorder.go fix: regression in counting total requests (#17024) 2023-04-12 14:37:19 -07:00
response-recorder.go Add TTFB to all APIs and enable for responses without body (#20479) 2024-09-24 10:13:00 -07:00
server.go Make DeadlineConn http.Listener compatible (#20635) 2024-11-12 12:41:41 -08:00
server_test.go Removing timeout on shutdown (#19956) 2024-06-19 11:42:47 -07:00
transports.go Fix lint issues from v1.62.0 upgrade (#20633) 2024-11-11 06:51:43 -08:00