Sfoglia il codice sorgente

increase stanza timeout to 20s (#2799)

* increase stanza timeout to 20s

fixes issues with higher latency connections timing out fetching stanzas
Rob j Loranger 3 anni fa
parent
commit
125f45c447
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1 0
      CHANGES.md
  2. 1 1
      src/headless/shared/_converse.js

+ 1 - 0
CHANGES.md

@@ -6,6 +6,7 @@
 - #1761: Add a new dark theme based on the [Dracula](https://draculatheme.com/) theme
 - #2751: Media not rendered when Converse runs in a browser extension
 - #2789: Implement new hook parseMessageForCommands for plugins to add custom
+- Increased stanza timeout from 10 to 20 seconds
 
 ### New hooks and events
 

+ 1 - 1
src/headless/shared/_converse.js

@@ -43,7 +43,7 @@ const _converse = {
      * @constant
      * @type { integer }
      */
-    STANZA_TIMEOUT: 10000,
+    STANZA_TIMEOUT: 20000,
 
     SUCCESS: 'success',
     FAILURE: 'failure',