We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fef6d4b commit 6300abdCopy full SHA for 6300abd
server.go
@@ -86,8 +86,8 @@ func (s *TRPServer) httpserver() {
86
}
87
88
func (s *TRPServer) cliProcess(conn *net.TCPConn) error {
89
- // 设置10秒超时
90
- conn.SetReadDeadline(time.Now().Add(time.Duration(10) * time.Second))
+ // 设置5秒超时
+ conn.SetReadDeadline(time.Now().Add(time.Duration(5) * time.Second))
91
vval := make([]byte, 20)
92
_, err := conn.Read(vval)
93
if err != nil {
0 commit comments