EventSource: Failure in IdleTimeout

Recently my plex server has been losing connection with the player about every 20-30 minutes of playback.
When playing on to a computer this loss of connection is restored with in 10 seconds but when playing onto a chromecast ultra it takes nearly 5 minutes to restore. This is happening with both transcoding and non-transcoding video files.

LOGS:
Dec 29, 2016 12:50:00.437 [0x80ae9ec00] DEBUG - It took 0.0 sec to serialize a list with 0 elements.
Dec 29, 2016 12:50:00.438 [0x809351c00] DEBUG - Completed: [127.0.0.1:19299] 206 PUT /video/:/transcode/session/6r2mwcj77ssylq8n0ct8bsm7/progress?progress=55.0&size=1056567539&remaining=19975 (13 live) 0ms 342 bytes
Dec 29, 2016 12:50:00.958 [0x809352000] DEBUG - EventSource: Failure in IdleTimeout (0 - No error: 0).
Dec 29, 2016 12:50:00.958 [0x809352000] DEBUG - MyPlex: We appear to have lost Internet connectivity, resetting device URL cache.
Dec 29, 2016 12:50:00.958 [0x809352000] ERROR - EventSource: Retrying in 15 seconds.
Dec 29, 2016 12:50:00.969 [0x809352000] DEBUG - Auth: We found auth token (xxxxxxxxxxxxxxxxxxxx), enabling token-based authentication.
Dec 29, 2016 12:50:00.969 [0x809352000] DEBUG - Auth: Came in with the master token, authorization succeeded.

Server:
FreeNAS
plex 1.2.7.2987
Intel i3
16 gb ram

Any ideas? I get the same error as above every time it looses connection.

I’ve been seeing the same thing. Interestingly i found another thread (it was a few days ago so forgive me for not having the link) that showed evidence that this may be the fault of the router.

I’ve got a very similar set up to you, all my kit is hard wired into the router so it makes me think it’s more likely an issue with the router than the server losing connection through it’s own fault. The thread suggested restarting the router which in my case appears to have resolved it for now. I have a BT Ultrafast hub. I’m going to collect logs the next time i see this happen to try and dig deeper to see why it occurs.

If you found the root cause and is something different i’d be interested to hear what it was.

Server:
FreeNAS 11.2
Plex 1.14.1.5488
Intel i3
16Gb RAM