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