connect-swift icon indicating copy to clipboard operation
connect-swift copied to clipboard

Unreliable timeout in 1.1.0

Open eLud opened this issue 4 months ago • 2 comments

I recently updated the Connect lib to 1.1.0 in an app, and was able to notice that the timeout specified in ProtocolClient and ProtocolClientConfig seems to not be working reliably. Are you aware of this?

I can't reproduce every time, but was still able to do it multiple times + had user feedback about it.

Step to reproduce:

  • Set a timeout
  • Set Network Link Conditioner on, with 100% Loss config
  • Trigger the request
Image

Outcome:

  • The request never gets an answer, and Connect never didn't time out either.
  • If you are awaiting for the result in a specific loading state, the app get stuck in this state

Expected behavior:

  • The timeout fires consistently if no response is received after the specified time.

eLud avatar Jul 23 '25 12:07 eLud

@rebello95: do you have any insights on this? I'm wondering if this is only the top of the iceberg with potentially deeper ramifications.

aymericbeaumet avatar Sep 17 '25 14:09 aymericbeaumet

👋🏽 hey @aymericbeaumet and @eLud! Apologies - I did see this issue and thought I responded, but must've failed to save my comment 😓

I spent a bit of time trying to reproduce this but wasn't able to using the config in the screenshot above. Do either of you have tips for reproducing this or sample projects where it's happening for you consistently?

cc @eseay in case you've come across this as well

rebello95 avatar Sep 18 '25 03:09 rebello95