lijian hace 1 año
padre
commit
f427ed0d06
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      server/client.go

+ 1 - 1
server/client.go

@@ -69,7 +69,7 @@ func (c *Client) SendLoop() {
 					glog.Error("接收指令超时")
 					break
 				default:
-					receiveBuf, err := c.conn.Recv(-1)
+					receiveBuf, err := c.conn.Recv(0)
 					if err != nil {
 						c.readError(err)
 						break