Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

bot.send接口有较大可能卡顿30秒 #387

Open
xiaobear250 opened this issue Dec 8, 2018 · 3 comments
Open

bot.send接口有较大可能卡顿30秒 #387

xiaobear250 opened this issue Dec 8, 2018 · 3 comments

Comments

@xiaobear250
Copy link
Contributor

调用bot.send接口发送消息时,最近经常会出现进程直接卡住,到30秒后才发送成功。导致机器人出现30秒的假死状态。同时后续的消息也是要等卡顿之后才处理。
_20181208134352

@pandolia
Copy link
Owner

pandolia commented Dec 9, 2018

你试试把下面这个函数里面的 https 改回 http ,看看有没有效果。
https://github.com/pandolia/qqbot/blob/master/qqbot/basicqsession.py#L241

@xiaobear250
Copy link
Contributor Author

谢谢。不过测试无效。

@pandolia
Copy link
Owner

这个卡顿,其他网友也跟我说过,但我这边一直没有这个现象。目前分析,大概率是请求下面这三个接口发送消息时服务端响应时间太长导致的,似乎没有什么办法可以解决。

https://d1.web2.qq.com/channel/send_buddy_msg2
https://d1.web2.qq.com/channel/send_qun_msg2
https://d1.web2.qq.com/channel/send_discu_msg2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants