Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection time is too high 1 to 2 mins, for some users it is taking upto 3 min #235

Open
dhaval-dobariya opened this issue Oct 25, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@dhaval-dobariya
Copy link

On every app launch or even app open form background connection is taking much time
I have also tried app from AppStore, it is also taking same amount of time on every app launch or app open from background

To Reproduce
Steps to reproduce the behavior:

  1. You can use any existing users
  2. Send messages to 2nd user
  3. Open app of 1st user and observe the time you get those message or you are connected to server to start communication with connected users

Expected behavior
It should connect faster may be within 15 to 30 secs max

Screenshots

App Launch After sometime
IMG_0641 IMG_0642

Details (please complete the following information):

  • Siskin Version: 7.3.3
  • Branch: stable
  • Xcode version: 14.1
  • iOS version 15.5, 16.1, 17.0.3
  • iPhone model iPhone 7, iPhone Xs, iPhone 14 pro
@dhaval-dobariya
Copy link
Author

@hantu85 do you have any solution/idea about this issue?

@hantu85
Copy link
Contributor

hantu85 commented Nov 21, 2023

I've seen issues like that, but those issues were releated to XMPP protocol connection establishment (what is a multistep process, a few exchanges back and forth for which client needs to wait for a response from a server). That happens usually on a slow connection or a connection with a huge delays, ie. when a lot of retransmissions is required for a single TCP package or when client connects to the server with a large RTT (round trip time, ping to the server is high).

Client is already optimized to handle those situations and tries to use the best possible strategy, ie. use DirectTLS connection instead of StartTLS if XMPP server supports that.

New version, that is still worked on will support SASL2 and Bind2 that should improve reconnection times when server will support it, but there is no ETA on that.

@manishvpatel
Copy link

manishvpatel commented May 24, 2024

@hantu85 I have integrated library and facing the same issue. It does not connect in up to 4 mins. I tried to disconnect and connect user in loop with 10 seconds interval until it connects but still that is not working. It is usually happens in slow network e.g less than 80-100 mbps speed.

Do you have any temporary patch or solution for this issue?

@dhaval-dobariya did you get any solution around this issue?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants