Closed jjqoie closed 2 years ago
Slow means that for example when a new talk message is entered it takes sometimes up to 30 seconds until it was sent, but also switching between the other nextcloud tabs is less responsive.
The request you outline is a long polling request. Please check your server configuration that there are enough workers available when you use HTTP2 e.g. See https://nextcloud-talk.readthedocs.io/en/latest/system-requirements/#webserver for more details
How to use GitHub
Steps to reproduce
Client used https://github.com/jjqoie/nctalkclient Same user makes more than one poll/wait API request in parallel to different chatrooms(tokens) /ocs/v2.php/apps/spreed/api/v1/chat/${this.roominfo.token}?lookIntoFuture=1&setReadMarker=1&format=json&lastKnownMessageId=${this.lastmsgid}
Expected behaviour
Should work with out slowing down nextcloud and making it less responsive.
Actual behaviour
With one request to one chatroom everything is fine. 2 or more parallel requests of the same user to differnt chatrooms(tokens) makes the nextcloud instance slow and less responsive. Slow means that for example when a new talk message is entered it takes sometimes up to 30 seconds until it was sent, but also switching between the other nextcloud tabs is less responsive… It looks like the delay is releated to the timeout parameter send with these requests. I have tested this also on a new nextcloud instance running in a VM, same behaviour.
Talk app
Talk app version: (see apps admin page:
/index.php/settings/apps
) 12.2.2Custom Signaling server configured: yes/no and version (see additional admin settings:
/index.php/index.php/settings/admin/talk#signaling_server
) NOCustom TURN server configured: yes/no (see additional admin settings:
/index.php/settings/admin/talk#turn_server
) NOCustom STUN server configured: yes/no (see additional admin settings:
/index.php/settings/admin/talk#stun_server
) NOBrowser
Browser is not open
Microphone available: yes/no
Camera available: yes/no
Operating system: Windows/Ubuntu/...
Browser name: Firefox/Chrome/...
Browser version: 85/96/...
Browser log
Server configuration
Operating system: Ubuntu/RedHat/... Docker Alpine
Web server: Apache/Nginx Nginx
Database: MySQL/Maria/SQLite/PostgreSQL MariaDB
PHP version: 7.4/8.0/8.1 8.0
Nextcloud Version: (see admin page) 22.2.3.0
List of activated apps:
Nextcloud configuration:
Server log (data/nextcloud.log)