mirror of
https://github.com/rclone/rclone.git
synced 2024-12-26 00:49:22 +01:00
17 lines
310 B
Go
17 lines
310 B
Go
|
// HTTP parts go1.8+
|
||
|
|
||
|
//+build go1.8
|
||
|
|
||
|
package http
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
// Initialise the http.Server for pre go1.8
|
||
|
func initServer(s *http.Server) {
|
||
|
s.ReadHeaderTimeout = 10 * time.Second // time to send the headers
|
||
|
s.IdleTimeout = 60 * time.Second // time to keep idle connections open
|
||
|
}
|