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.

Sessions seem to "time out" and sometimes never connect

See original GitHub issue

I’ve come back to bugout after a hiatus and have been playing around with basic chat.

What I’ve been noticing is that the sessions are timing out if the user is idle. The other party isn’t able send or receive messages in that room either because my session isn’t active any longer. Sometimes the session never reconnects until the first instance is refreshed several times, or unless I duplicate the tab to “kickstart” the session.

Is this something that you have seen before and/or do you have any ideas on how to improve connectivity? By the way, I am doing a simple p2p room, not server/client based, if that matters.

I added b.heartbeat() thinking it might help, but it has not.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chr15mcommented, Jun 29, 2020

I have a long running service using Bugout which connects find even after being online for a year. I think the difference here is you want the connection itself to be long running and/or reconnect when it goes offline. I haven’t tested this use-case much, but have marked this as a bug and will investigate next time I am working on Bugout. In the meantime if you discover anything please note it here. You can turn on extra debugging in the console with: localStorage["debug"] = "bugout,webtorrent"

Thanks for reporting this.

0reactions
chr15mcommented, Jul 29, 2020

@draeder I have upgraded the tracker server to the latest version of bittorrent-tracker which was long overdue. Hopefully this brings some stability.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Session Has Expired Error on the Internet
If your Internet connection is unstable, periodically disconnecting and reconnecting, it can cause a website session to expire. When the ...
Read more >
Help corner: Timeout problems when initiating an RDP session
“When the issue arises, users attempting to initiate an RDP session are able to enter their login credentials no problem, but the session...
Read more >
Session Timeout - an overview | ScienceDirect Topics
Session timeout is a fairly popular option that needs to be used carefully. ... It is used to determine how long a device...
Read more >
Identifying and troubleshooting VPN session timeout issues
Potential VPN timeout issues include the following: The internet connection is spotty. The internet connection at a certain location blocks VPN access. The...
Read more >
So many timeouts all of a sudden! (Remote Control session ...
With Comcast (our old provider) I would get timeouts/closed sessions maybe once or twice a day, always when the connection was idle.
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