Commit 43504f38 authored by haoyanbin's avatar haoyanbin

Config

parent 94c27856
...@@ -7,7 +7,9 @@ import ( ...@@ -7,7 +7,9 @@ import (
const ( const (
//host = "39.96.85.45" //host = "39.96.85.45"
host = "172.17.36.63" //port = 6382
//password = "saas123456"
host = "172.17.0.102"
port = 6399 port = 6399
password = "a123456" password = "a123456"
db = 6 db = 6
......
...@@ -286,6 +286,7 @@ Loop: ...@@ -286,6 +286,7 @@ Loop:
goto Loop1 goto Loop1
} }
c.lastSendTime = time.Now() c.lastSendTime = time.Now()
fmt.Println(string(message))
_, err = w.Write(message) _, err = w.Write(message)
if err != nil { if err != nil {
c.onError(errors.New("连接ID:" + c.Id + "写消息进写入IO错误!连接中断" + err.Error())) c.onError(errors.New("连接ID:" + c.Id + "写消息进写入IO错误!连接中断" + err.Error()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment