Index: openacs-4/packages/xowiki/www/resources/streaming-chat.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/streaming-chat.js,v diff -u -N -r1.1.2.1 -r1.1.2.2 --- openacs-4/packages/xowiki/www/resources/streaming-chat.js 23 Apr 2020 12:39:56 -0000 1.1.2.1 +++ openacs-4/packages/xowiki/www/resources/streaming-chat.js 22 May 2020 09:29:19 -0000 1.1.2.2 @@ -38,8 +38,10 @@ if (status != 200 && status != 0) { console.error('Something wrong in HTTP request, status code = ' + status); } - console.log('Server has closed the connection. Try to reconnect in 10s...'); - setTimeout(chatSubscribe, 10000, subscribe_url); + if (status.match(/^4\d\d$/) == null) { + console.log('Server has closed the connection. Try to reconnect in 10s...'); + setTimeout(chatSubscribe, 10000, subscribe_url); + } } }; http.send(null);