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.

Allow disabling ping/pong?

See original GitHub issue

It would be nice if a 0 value for pingInterval or pingTimeout could disable ping/pong checking entirely.

When used with an abstraction layer like Primus, the ping/pong is redundant and can sometimes cause situations where engine.io terminates the connection and Primus doesn’t pick up on it. In those cases Primus might not reconnect.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
STRMLcommented, Jan 22, 2017

This is something we’ll have to be prepared for in every browser - Safari has been doing this for years, Chrome is next and I’m sure FF and IE are not far behind. We simply can’t rely on client timers being anywhere near reliable. I’ve seen 130+ (!) delays in Chrome 56. Word from them is that they will set a max, but the writing is on the wall.

On Jan 22, 2017 3:28 PM, “Luigi Pinca” notifications@github.com wrote:

Yes, but the client timer that sends the ping is delayed by the browser so the server incorrectly closes the connection. Imagine that you used setTimeout(sendPing, 20000); on the client. The sendPing callback is not actually called after 20 sec but after 40 sec.

Hope it makes sense 😃

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/socketio/engine.io/issues/312#issuecomment-274361089, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJFP9A_SydFX0hUCYKgTSZY1IZojB5Uks5rU8npgaJpZM4Dp2fJ .

0reactions
lpincacommented, Jan 22, 2017

Yes, but the client timer that sends the ping is delayed by the browser so the server incorrectly closes the connection. Imagine that you used setTimeout(sendPing, 20000); on the client. The sendPing callback is not actually called after 20 sec but after 40 sec.

Hope it makes sense 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Disable Ping In Linux? [Stop Ping Linux] - MonoVM
Now use the local host command to disable the ping and never forget to press CTRL+C. ping localhost. PING localhost (127.0.0.1) 56(84) bytes...
Read more >
After Effects: How to Enable & Disable Expressions - YouTube
After Effects CC 2021: Toggle On ( Enable ) or Toggle Off ( Disable ) ... I added the Expression: loopOut(“ pingpong ”)which...
Read more >
Official Table Tennis / Ping Pong Rules - PROShopWorld.com
As soon as the ball has been projected, the server's free arm and hand shall be removed from the space between the ball...
Read more >
Table tennis rules: Everything you need to know - Olympics
If the player attempts to return the ball before it bounces, a foul is called. In singles competition, while the service rule allows...
Read more >
Table Tennis Rules | Killerspin
20.5 Standing disabled players follow all standard rules; there are a few modifications for wheelchair play. Wheelchair Rules 20.6 The table shall allow...
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