mirror of
https://github.com/minio/minio.git
synced 2025-04-25 20:43:17 -04:00
Set Read/Write timeouts only for net.Conn not http.Server (#7431)
Fixes #7425
This commit is contained in:
parent
4a698c731b
commit
6df05e489d
@ -57,6 +57,8 @@ const (
|
|||||||
type Server struct {
|
type Server struct {
|
||||||
http.Server
|
http.Server
|
||||||
Addrs []string // addresses on which the server listens for new connection.
|
Addrs []string // addresses on which the server listens for new connection.
|
||||||
|
ReadTimeout time.Duration // timeout used for net.Conn.Read() deadlines.
|
||||||
|
WriteTimeout time.Duration // timeout used for net.Conn.Write() deadlines.
|
||||||
ShutdownTimeout time.Duration // timeout used for graceful server shutdown.
|
ShutdownTimeout time.Duration // timeout used for graceful server shutdown.
|
||||||
TCPKeepAliveTimeout time.Duration // timeout used for underneath TCP connection.
|
TCPKeepAliveTimeout time.Duration // timeout used for underneath TCP connection.
|
||||||
UpdateBytesReadFunc func(int) // function to be called to update bytes read in bufConn.
|
UpdateBytesReadFunc func(int) // function to be called to update bytes read in bufConn.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user