|
|
|
@ -19,7 +19,7 @@ package httpserver |
|
|
|
|
import ( |
|
|
|
|
"log" |
|
|
|
|
"net/http" |
|
|
|
|
"time" |
|
|
|
|
// "time"
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
type HttpServerConfig struct { |
|
|
|
@ -46,10 +46,11 @@ func start(ctrlChannel <-chan string, errorChannel chan<- error, |
|
|
|
|
|
|
|
|
|
// Minio server config
|
|
|
|
|
httpServer := &http.Server{ |
|
|
|
|
Addr: config.Address, |
|
|
|
|
Handler: router, |
|
|
|
|
ReadTimeout: 10 * time.Second, |
|
|
|
|
WriteTimeout: 10 * time.Second, |
|
|
|
|
Addr: config.Address, |
|
|
|
|
Handler: router, |
|
|
|
|
// TODO add this later with a proper timer thread
|
|
|
|
|
// ReadTimeout: 20 * time.Second,
|
|
|
|
|
// WriteTimeout: 20 * time.Second,
|
|
|
|
|
MaxHeaderBytes: 1 << 20, |
|
|
|
|
} |
|
|
|
|
log.Println("Starting HTTP Server on:", config.Address) |
|
|
|
|