goSocket icon indicating copy to clipboard operation
goSocket copied to clipboard

客户端不停的发送一会就出现这个

Open ihxzihxz opened this issue 7 years ago • 5 comments

2017/09/25 20:54:17 127.0.0.1:49219 get message, keeping heartbeating... 2017/09/25 20:54:18 receive data string: {"meta":{"ID":"238","meta":"test"},"con tent":{"meta":{"author":"nucky lu"},"content":"1506344058"}} 2017/09/25 20:54:18 echo the message: {"meta":{"ID":"238","meta":"test"},"conten t":{"content":"1506344058","meta":{"author":"nucky lu"}}} 2017/09/25 20:54:18 127.0.0.1:49219 get message, keeping heartbeating... 2017/09/25 20:54:19 receive data string: {"meta":{"ID":"239","meta":"test"},"con tent":{"meta":{"author":"nucky lu"},"content":"1506344059"}} 2017/09/25 20:54:19 echo the message: {"meta":{"ID":"239","meta":"test"},"conten t":{"content":"1506344059","meta":{"author":"nucky lu"}}} 2017/09/25 20:54:23 127.0.0.1:49219 connection error: read tcp 127.0.0.1:1024-

127.0.0.1:49219: i/o timeout 2017/09/25 20:54:23 127.0.0.1:49219 get message, keeping heartbeating...

ihxzihxz avatar Sep 25 '17 13:09 ihxzihxz

2017/09/25 20:54:23 127.0.0.1:49219 connection error: read tcp 127.0.0.1:1024- 127.0.0.1:49219: i/o timeout

ihxzihxz avatar Sep 25 '17 13:09 ihxzihxz

send中的for循环给的10000次

ihxzihxz avatar Sep 25 '17 13:09 ihxzihxz

具体是报的什么错啊。。。不好意思发的有点乱。。没看懂。。。 最近在找工作,没怎么关注github,不好意思啊

gislu avatar Oct 16 '17 22:10 gislu

就是把循环数量加多,然后跑多几次就出错。出错为: 2017/09/25 20:54:23 127.0.0.1:49219 connection error: read tcp 127.0.0.1:1024-

127.0.0.1:49219: i/o timeout 2017/09/25 20:54:23 127.0.0.1:49219 get message, keeping heartbeating...

ihxzihxz avatar Oct 17 '17 03:10 ihxzihxz

哦,可能是接受的buffer的size设置的太小了,溢出后就报错了

gislu avatar Oct 17 '17 03:10 gislu