mirror of
https://github.com/zotero/zotero.git
synced 2026-10-10 03:28:10 +00:00
Keep reconnecting to the streaming server after a 4429 close
A 4429 (Too Many Requests) close stopped streaming until restart along with the other 44xx codes. Retry it on the normal backoff schedule.
This commit is contained in:
parent
a69b55ea96
commit
b0db83d9dc
1 changed files with 2 additions and 1 deletions
|
|
@ -347,7 +347,8 @@ Zotero.Streamer_Module.prototype = {
|
|||
this._subscriptions.clear();
|
||||
|
||||
if (this._reconnect) {
|
||||
if (event.code >= 4400 && event.code < 4500) {
|
||||
// Keep retrying on 4429 (Too Many Requests)
|
||||
if (event.code >= 4400 && event.code < 4500 && event.code != 4429) {
|
||||
Zotero.debug("Not reconnecting to WebSocket due to client error");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue