-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed send/receive updates: high-load bot stop works time to time #760
Comments
any updates? When it happens then context cancels but client.Run does not return |
This can be caused by #1030 and is not fixed. Currently I'm out capacity. |
Maybe there is a workaround how to catch it and reconnect the account yourself? |
I encountered this issue with my high-load bot too, this situation always happen and resume in 1-2 minutes. Can anyone help? It's really important to me. |
I'm trying to find a way to reproduce this issue.
Just closing connection does not reproduce this issue, so probably another way is needed. If anobody have ideas how to reproduce it in controlled environment (I'm using echobot started locally) I will be very happy. Closing in favor of #1030 to track this problem in single issue. |
What version of gotd are you using?
github.com/gotd/td v0.56.0
Can this issue be reproduced with the latest version?
Yes I think
What did you do?
I have a high-load bot. Every 5-10 minutes it stops receiving updates/send messages for a while:
Here's what errors happens during this time:
rpcDoRequest: retryUntilAck: send: write: write intermediate: write tcp <server ip here>:45706->149.154.167.41:443: write: broken pipe
for 10-15 secondsengine was closed
for 10-15 secondsThis problem does not depend on which bot the code is running on. If it is high-load bot, the problem happens. If it is not high-load bot, the problem does not happens.
What did you expect to see?
The bot is working properly.
What did you see instead?
The bot does not respond time to time.
What Go version and environment are you using?
go version go1.18 linux/amd64
go env
OutputWhere the code is builded on:
Where the code is running on:
The text was updated successfully, but these errors were encountered: