lijian 1 년 전
부모
커밋
792dcaae7a
4개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. BIN
      .DS_Store
  2. 6 0
      .idea/vcs.xml
  3. BIN
      bin/linux_amd64/monitor2
  4. 1 1
      server/client.go

BIN
.DS_Store


+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

BIN
bin/linux_amd64/monitor2


+ 1 - 1
server/client.go

@@ -61,7 +61,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