mirror of
https://github.com/minio/minio.git
synced 2025-01-26 22:23:15 -05:00
Remove HTTP server timeouts write and read.
Implement it later with a proper timer thread. Large file transfers from 'mc' fail with i/o timeout without this change.
This commit is contained in:
parent
e0d78e7381
commit
a9aaff0ee0
@ -19,7 +19,7 @@ package httpserver
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
// "time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HttpServerConfig struct {
|
type HttpServerConfig struct {
|
||||||
@ -46,10 +46,11 @@ func start(ctrlChannel <-chan string, errorChannel chan<- error,
|
|||||||
|
|
||||||
// Minio server config
|
// Minio server config
|
||||||
httpServer := &http.Server{
|
httpServer := &http.Server{
|
||||||
Addr: config.Address,
|
Addr: config.Address,
|
||||||
Handler: router,
|
Handler: router,
|
||||||
ReadTimeout: 10 * time.Second,
|
// TODO add this later with a proper timer thread
|
||||||
WriteTimeout: 10 * time.Second,
|
// ReadTimeout: 20 * time.Second,
|
||||||
|
// WriteTimeout: 20 * time.Second,
|
||||||
MaxHeaderBytes: 1 << 20,
|
MaxHeaderBytes: 1 << 20,
|
||||||
}
|
}
|
||||||
log.Println("Starting HTTP Server on:", config.Address)
|
log.Println("Starting HTTP Server on:", config.Address)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user