mirror of
https://github.com/hamburghammer/gsave.git
synced 2025-03-15 02:25:55 +01:00
Add timeout for idle connections
This commit is contained in:
parent
96f1638564
commit
d6158dbe37
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
@ -68,6 +68,7 @@ func main() {
|
|||
Addr: fmt.Sprintf(":%d", servePort),
|
||||
WriteTimeout: 15 * time.Second,
|
||||
ReadTimeout: 15 * time.Second,
|
||||
IdleTimeout: 120 * time.Second,
|
||||
}
|
||||
|
||||
var wg sync.WaitGroup
|
||||
|
|
Loading…
Add table
Reference in a new issue