Terry-Mao / goim

goim
https://goim.io/
MIT License
7.21k stars 1.78k forks source link

使用benchmark中的push出错(使用go install编译的) #105

Closed eric-hon closed 8 years ago

eric-hon commented 8 years ago

eric@go:~/go/bin$ ./push 0 20000 localhost:7172 60

[06/16/16 18:55:58] [INFO] req: "/1/push", post: "{"m":{"test":1},"u":10000}", res:"{"ret":65535}", ip:"127.0.0.1:56348", time:"0.000036s" [06/16/16 18:55:58] [EROR] strconv.Atoi("") error(strconv.ParseInt: parsing "": invalid syntax) [06/16/16 18:55:58] [INFO] req: "/1/push", post: "{"m":{"test":1},"u":10000}", res:"{"ret":65535}", ip:"127.0.0.1:56348", time:"0.000018s" [06/16/16 18:55:58] [EROR] strconv.Atoi("") error(strconv.ParseInt: parsing "": invalid syntax) [06/16/16 18:55:58] [INFO] req: "/1/push", post: "{"m":{"test":1},"u":10000}", res:"{"ret":65535}", ip:"127.0.0.1:56348", time:"0.006457s"

Terry-Mao commented 8 years ago

看一下各个模块的日志,确认下问题

eric-hon commented 8 years ago

各个模块都没其他信息

Terry-Mao commented 8 years ago

[06/16/16 18:55:58] [EROR] strconv.Atoi("") error(strconv.ParseInt: parsing "": invalid syntax) 参数不对,-h 看一下吧

Terry-Mao commented 8 years ago

@thinkboy

thinkboy commented 8 years ago

https://github.com/Terry-Mao/goim/pull/111 修复了这个问题。单条多条推送用相同的推送接口。