Skip to content
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

sometimes slow response #550

Closed
downygg opened this issue Mar 11, 2024 · 9 comments
Closed

sometimes slow response #550

downygg opened this issue Mar 11, 2024 · 9 comments

Comments

@downygg
Copy link

downygg commented Mar 11, 2024

hello, i got some issue after 2 - 3 weeks local server running.
after i change working directory parameter, bot will fast to response.
why it happened?

fyi, i use supervisor as daemon for keep local server running.

thank you,

@levlam
Copy link
Contributor

levlam commented Mar 11, 2024

There should be no significant difference in speed depending on the working directory.

@downygg
Copy link
Author

downygg commented Mar 11, 2024

i think this issue from tqueue.binlog or cache fro working dir but i don't really so.

@levlam
Copy link
Contributor

levlam commented Mar 11, 2024

None of these can cause significant difference in speed.

@DoNotWannaTry
Copy link

I am experiencing the same issue, but switching the working directory hasn't made any difference. Specifically, both receiving requests and sending responses are extremely slow on the local server, and I'm unsure why this is happening.

@downygg
Copy link
Author

downygg commented Jun 4, 2024

I am experiencing the same issue, but switching the working directory hasn't made any difference. Specifically, both receiving requests and sending responses are extremely slow on the local server, and I'm unsure why this is happening.

I think this issue from telegram datacenter's are slow or maybe on maintenance. But I'm not sure every week is slow at telegram datacenter's

@DoNotWannaTry
Copy link

I am experiencing the same issue, but switching the working directory hasn't made any difference. Specifically, both receiving requests and sending responses are extremely slow on the local server, and I'm unsure why this is happening.

I think this issue from telegram datacenter's are slow or maybe on maintenance. But I'm not sure every week is slow at telegram datacenter's

After deploying a local server, I understand that requests are forwarded and responses are handled by a local server proxy. How does this process relate to Telegram's data centers?

@downygg
Copy link
Author

downygg commented Jun 4, 2024

I am experiencing the same issue, but switching the working directory hasn't made any difference. Specifically, both receiving requests and sending responses are extremely slow on the local server, and I'm unsure why this is happening.

I think this issue from telegram datacenter's are slow or maybe on maintenance. But I'm not sure every week is slow at telegram datacenter's

After deploying a local server, I understand that requests are forwarded and responses are handled by a local server proxy. How does this process relate to Telegram's data centers?

you can check this diagram how to this lib work. Source : #1 (comment)

@levlam
Copy link
Contributor

levlam commented Jun 4, 2024

@DoNotWannaTry The logs on the screenshot shows that everything works as expected. The only suspicious line is getUpdates request with timeout 0 instead of some big value, but this is an issue in the bot's code.

@DoNotWannaTry
Copy link

@DoNotWannaTry The logs on the screenshot shows that everything works as expected. The only suspicious line is getUpdates request with timeout 0 instead of some big value, but this is an issue in the bot's code.

I restarted the local server and re-registered the bots, and it seems to be normally now.

@levlam levlam closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants