Files
mostlymatter/app
José Peso 48a9234d69 websocket: drop less important events before they are queued (#20326)
Discard the non-essential WebSocket events before they are queued.

When conn send queue is full, the connection is closed. There are messages that are being dropped by the current mechanism when send queue is at 50% capacity. This change makes the messages drop before entering the queue in order to keep the queue as empty as possible.

The value of the length of the queue could not be 100% accurate since we are reading from the hub goroutine, but it will be accurate enough to avoid some events.
2022-06-14 09:35:22 +02:00
..
2022-04-11 20:51:33 +05:30
2022-04-11 19:31:19 +05:30
2022-02-17 12:34:39 -05:00
2022-02-17 12:34:39 -05:00
2022-06-13 09:36:43 +03:00
2022-06-13 09:36:43 +03:00
2022-06-13 09:36:43 +03:00
2022-04-11 19:31:19 +05:30
2022-04-11 19:31:19 +05:30
2022-06-09 00:36:28 +03:00
2021-08-17 16:08:04 -04:00
2022-04-11 19:31:19 +05:30
2022-03-15 19:49:19 +05:30
2022-04-11 19:31:19 +05:30
2022-06-09 00:36:28 +03:00
2022-06-13 09:36:43 +03:00
2021-10-12 11:39:49 +05:30
2022-06-13 09:36:43 +03:00
2022-02-17 12:34:39 -05:00
2022-06-13 09:36:43 +03:00
2022-02-28 15:01:00 +05:30