question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use 0ms as polling interval value

See original GitHub issue

Hi!

I would like to perform long polling like this:

var bot = new TelegramBot(token, { polling: { timeout: 2000, interval: 0 } });

The problem is that 0 is replaced with default 2000ms inside the module. I can use interval: 1. It solves the issue but doesn’t feel right. Is there any other way to perform long polling?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yagopcommented, Oct 19, 2015

As said on #41 I don’t know why people want to do 0ms pooling interval, its really annoying for server and client, its just like DDoSing Telegram.

I will set default polling interval by 300ms

0reactions
yagopcommented, Nov 19, 2015

Allow 0ms as polling interval. Default timeout 10 seconds.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How often Storage Resource Manager (SRM)Polls the storage?
The polling interval is how often data is gathered from the device and put into SRM database. Interval of datapoints (data sampling) is...
Read more >
1947712 – [OVN] Many faults and Polling interval stuck for 4 ...
Description of problem: We believe this causes packet drops or latency that causes an application in OpenShift to crash.
Read more >
Can merge replication operate with 0 ms delay, i.e. be real-time?
This delay can be decreased by specifying a lower value for the -PollingInterval parameter which is how often in seconds the publisher or ......
Read more >
Poll intervals - IBM
The number of poll intervals affects the response times. A guideline is provided to help with choosing the appropriate interval.
Read more >
Cisco MDS 9000 Series Interfaces Configuration Guide ...
You can configure the polling interval using the port monitor counter command. For configuring the SFP counters, see Configuring a Port Monitor Policy....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found