Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Realtime Stats WebSocket Gets Disconnected After 1 Minute of Inactivity #1663
Every after exactly 1 exactly minute of inactivity, the WebSocket gets disconnected like this:
On servers with a large amount of requests, the problem may not appear for the stats are always being updated quickly and therefore the WebSocket is always active. But on small servers like this one, there is totally possible to have a 1-minute-no-request period.
There have already been an issue discussing about this problem: #1491, I'll talk about that in the
It's not GoAccess's fault.
It may be due to the limitation of Firefox, Chrome and possibly other browsers. They kill WebSocket connections that have been inactive for 1 minute. Reference: This StackOverflow Post
Or, it may be nginx's fault for the
As is described in #1491, extending
Here are some suggested solutions or "workarounds":
Edited for some typos :)