nextcloud / talk-ios

📱😀 Video & audio calls through Nextcloud on iOS
GNU General Public License v3.0
146 stars 86 forks source link

App does not reconnect to Nextcloud AIO signaling after being in background for 30 minutes #1680

Closed e-caste closed 4 weeks ago

e-caste commented 4 weeks ago

Steps to reproduce

  1. open chat
  2. it connects to signaling
  3. send app to background, do other stuff for 30 mins
  4. return to app -> app can't connect even after waiting for 30 seconds Here are the signaling logs from the nextcloud-aio-talk container (using Nextcloud all-in-one):
    client.go:355: Client from 192.168.65.1 has RTT of 9 ms (9.573917ms)
    throttle.go:279: Failed attempt on "HelloResume" from 192.168.65.1, throttling by 25s
    client.go:355: Client from 192.168.65.1 has RTT of 9 ms (9.032542ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 6 ms (6.136583ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 6 ms (6.298791ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 8 ms (8.231208ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 5 ms (5.353083ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 5 ms (5.784417ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 5 ms (5.979583ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 6 ms (6.042667ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 4 ms (4.602542ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 6 ms (6.270291ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 5 ms (5.827125ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 7 ms (7.246708ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 5 ms (5.5535ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 8 ms (8.402083ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 5 ms (5.838875ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 6 ms (6.708875ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 6 ms (6.83075ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 6 ms (6.146ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1
    client.go:355: Client from 192.168.65.1 has RTT of 6 ms (6.513792ms)
    throttle.go:255: Detected bruteforce attempt on "HelloResume" from 192.168.65.1

Expected behaviour

The app reconnects to the room with signaling server.

Actual behaviour

I need to reopen the app for it to properly connect. Just reopening the chat doesn't work.

Device information

Device: iPhone 15 Pro Max

iOS version: 17.5.1

Talk version: 19.0.2

Server information

Nextcloud version: 29.0.2.2

Talk version: 19.0.2

Custom Signaling server configured: yes

Custom TURN server configured: yes

Custom STUN server configured: yes

Server log (data/nextcloud.log)

``` Insert your server log here ```
SystemKeeper commented 4 weeks ago

Fixed by https://github.com/nextcloud/talk-ios/pull/1676 already, just waiting for a release :)

e-caste commented 4 weeks ago

Great work! I can also add I had this issue with Talk iOS 19 with Nextcloud AIO still being at 28, that's why I've opened this issue. Feel free to close it if it's solved!

SystemKeeper commented 4 weeks ago

It depends on the signaling version, so it is independent of 28/29, so I would assume this is fixed