-
Notifications
You must be signed in to change notification settings - Fork 637
[v2] Wrong Peak Connections. Clients not disconnecting? #654
Comments
I’m having the same issue testing on Laravel Valet 😕 After making multiple browser connections that subscribes to private channel and then closing them, dashboard server activity log is saying that sockets are disconnecting (but actually they are not closing). By manually stopping websockets:serve in console you can see all the closing connections that were made. 🤷🏻♂️ |
@lucadegasperi @balu-lt are your issues consistent with #362 ? |
@CodeJunkieio my issues are not related to presence channels as I'm not using them. If I try to open multiple tabs with the same browser the dashboard correctly report multiple connections and disconnections, but the peak connections in the chart keep going up (never down) and eventually I get a #623 |
Did you have the same issue on v1? |
Never tried, started straight with v2 as I couldn't get v1 to work for me. |
Please note that starting with v2, you should be able to provide the process a |
what does this mean exactly? Should the connections be quitted correctly by this package when a client actually disconnects' |
Well, it's a bit tricky. If the process abruptly closes with a Of course, another way is to ping the connections and see if they ping back. In case 120s passed and no ping came back, it marks it as disconnected just like Pusher protocol specifies. But there is an edge-case where the node can be SIGKILL-ed within the 120s period, so you can't check if it pinged within 120s since the connections are no longer available. |
hi @balu-lt and @lucadegasperi i still have the same issues with connections beeing logged as "disconnect" but actually beeing kept in the server. this is a local, no redis environment and as soon as a user open multiple tabs the issue appears. when ending the |
@simonbuehler unfortunately not, the problem still persists for me. (I restart the web sockets server every week via cron) I don't have the expertise nor the time to diagnose what's going here. |
@lucadegasperi you could try my fix in #696 |
after making the there is the issue: connection "removeObsoleteConnections"
"788257947.980883018 - 2021-02-23 12:08:05 49"
"5805355.353951279 - 2021-02-23 12:08:11 43"
"565743258.454857306 - 2021-02-23 12:08:39 14"
Connection id 565743258.454857306 closed.
Connection id 788257947.980883018 sending message {"event":"log-message","channel":"private-websockets-dashboard-disconnected","data":{"type":"disconnected","time":"12:09:06","details":{"socketId":"565743258.454857306"}}}
Saving statistics...
"removeObsoleteConnections"
"788257947.980883018 - 2021-02-23 12:08:05 61"
"5805355.353951279 - 2021-02-23 12:08:11 55"
"565743258.454857306 - 2021-02-23 12:08:39 26" this continues
until the server is ended:
|
@lucadegasperi found the issue! see #708 |
Hello, I'm running V2 beta 30 as a standalone app on laravel forge behind an Nginx proxy. The issue is the dashboard reports too many peak connections (2000+) and connections steadily rise after a weekly
websockets:restart
. It looks like clients aren't actually disconnected. If I don't do a weeklywebsockets:restart
I get something similar to #623. My app has around 150 concurrent connections and not 2000.Here's the nginx proxy configuration. If any more files are needed let me know.
The text was updated successfully, but these errors were encountered: