exoplatform / chat-application

Chat application
GNU Affero General Public License v3.0
38 stars 57 forks source link

fix: stop retrieving online users when some requests are pending - EXO-65044 #637

Closed Jihed525 closed 1 year ago

Jihed525 commented 1 year ago

When client OS goes suspended or there is issue connecting to eXo platform server, the requests retreiving online users do not stop and are queued on the browser. Once the connection is re-established, all those requests are processed at once causing an unnecessary workload on the server, and sometimes they causing server AND client browser hanging. The fix limits the number of unfinished requests to 3 to make sure it waits before resending new request

(cherry picked from commit 8de21a2620b54d97178e8c04dabdc428af911734)

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication