Skip to content

Commit 55ce794

Browse files
committed
为HttpClient增加超时时间,避免因为客户端读取未结束时因超时断开
1 parent 6d91b8f commit 55ce794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
var (
2323
MAX_SIZE uint64
2424

25-
TIMEOUT = 10 * time.Second
25+
TIMEOUT = 600 * time.Second
2626
)
2727

2828
var (

0 commit comments

Comments
 (0)