Jump to content

Recommended Posts

Posted

There actually is one already, but it's just very high (30 minutes). We can lower it a little.

  • Confused 3
adminExitium
Posted

That shouldn't even be considered a keepalive 😅. I don't think I have ever seen an idle connection stick around for more than a few minutes. Keepalives should generally be measured in the 10s of seconds, even a minute is quite long for mobile networks.

Cr8iveLosr
Posted

I can’t lie, that’s probably the most ridiculous (and funniest) thing I’ve ever read from Luke in all my years here.

Anyway, back on topic.
This is exactly why a proper keepalive is needed. It may not matter in many cases, but it definitely affects browsers more than other devices like TV apps. Even then, it’s still not a true keepalive.

I’ve seen legitimate TV devices connect, then drop remote access after a hardcoded 60 seconds — literally 61 seconds and it’s dead. Even when SupportsRemoteControl is set to true for the client, if the websocket closes, notification messages won’t display on the device. This behavior has been demonstrated in numerous threads over the years.

Something in the Emby core is chasing its own tail. There’s duplicate logic somewhere that’s causing absolute chaos.

  • 1 month later...
adminExitium
Posted

If the only change is modifying the keepalive interval and the actual keepalive mechanism already exists, it seems like a simple enough change.

Should we expect it to roll out in the apps anytime soon?

  • Haha 1
Posted
41 minutes ago, adminExitium said:

If the only change is modifying the keepalive interval and the actual keepalive mechanism already exists, it seems like a simple enough change.

Should we expect it to roll out in the apps anytime soon?

It is in the server, not in the apps.

darkassassin07
Posted
53 minutes ago, adminExitium said:

Should we expect it to roll out in the apps anytime soon?

@Luke

Posted
8 minutes ago, darkassassin07 said:

Did you read my response?

adminExitium
Posted

That's backwards for websockets... generally the clients do the keepalive to keep the NAT etc. alive from their routers or ISPs.

Anyways, if it's on the server, it should be even simpler hopefully?

So possible anytime soon?

  • Agree 1
Posted

There actually is one already, but it's just a little high (10 minutes). We can lower it a little.

  • Facepalm 1
Posted
2 hours ago, Luke said:

There actually is one already, but it's just a little high (10 minutes). We can lower it a little.

Sounds good, thank you. Any way this can be a advanced option to configure?

Cr8iveLosr
Posted (edited)

FFS

The posts are all describing the same thing: the WebSocket drops during playback, even when the user is still watching. Controls disappear after ~60 seconds because the socket hit a hard network timeout, not because the user is inactive.

Your repeated claim of "lowering a little" isn't helping anyone resolve the bigger issue.

Playback itself doesn’t generate WebSocket activity, so the connection dies no matter what. That’s why people are asking for keepalives or auto-reconnect.

The reports they’re showing a real 60-second forced timeout that Emby currently enforces is the problem.

Wanna fix it? Set keepalive to 30-45 seconds.

Edited by Cr8iveLosr
  • Agree 1
Cr8iveLosr
Posted
3 hours ago, SShzin said:

Any way this can be a advanced option to configure?

This

Posted
3 hours ago, SShzin said:

Sounds good, thank you. Any way this can be a advanced option to configure?

Yes certainly.

  • Like 3
  • 2 weeks later...
Cr8iveLosr
Posted

4.9.4.1-beta would have been the perfect time to show users a commitment to fixing this. Just saying...

  • Agree 1
Posted
5 minutes ago, Cr8iveLosr said:

4.9.4.1-beta would have been the perfect time to show users a commitment to fixing this. Just saying...

Yes I guess it would have, but in the meantime, there are some other nice new settings for you to enjoy.

Cr8iveLosr
Posted

Cool story bro. None of which has anything to do with this thread, but I’m sure it’ll definitely help someone… somewhere.

Back on topic,

This FR is about WebSocket keepalive, not new settings or features unrelated to session stability. The issue remains unchanged: sockets drop while users are actively watching, breaking admin control and remote commands.

A proper keepalive interval (e.g. 30–45 seconds) would actually address the problem being discussed.

Or implementing the “yes certainly” configurable setting that was mentioned.

  • Like 1
  • 3 weeks later...
SShzin
Posted

Any chance this will be added to the next release? Thanks.

Posted
1 hour ago, SShzin said:

Any chance this will be added to the next release? Thanks.

HI, it's on our to do list. Thanks.

  • Thanks 1
  • 4 weeks later...
Cr8iveLosr
Posted

Update on this?

  • Agree 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...