Improve connection timeout

This commit is contained in:
世界
2022-07-18 20:40:14 +08:00
parent 3fb011712b
commit c7fabe40ed
14 changed files with 152 additions and 111 deletions

8
constant/timeout.go Normal file
View File

@@ -0,0 +1,8 @@
package constant
import "time"
const (
DefaultTCPTimeout = 5 * time.Second
ReadPayloadTimeout = 300 * time.Millisecond
)