mirror of https://github.com/minio/minio.git
Merge pull request #206 from harshavardhana/pr_out_remove_http_server_timeouts_write_and_read
This commit is contained in:
commit
1786408bcc
|
@ -19,7 +19,7 @@ package httpserver
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
// "time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HttpServerConfig struct {
|
type HttpServerConfig struct {
|
||||||
|
@ -48,8 +48,9 @@ func start(ctrlChannel <-chan string, errorChannel chan<- error,
|
||||||
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…
Reference in New Issue