TCP Connection issues on iOS when app wakes up #1214
-
Hello, I am building an app with baresip and re on iOS. The app works very well, however I am experiencing an easily reproducible issue as follows:
I've traced this down to src/tcp/tcp.c line 400. I am using baresip and re 3.16 and I have the barsip loop running continuously. To confirm the issue relates to some "stale" connection I have tried to start and stop baresip with each call and can confirm that the issue does not happen (I did this just for testing. In my case this approach is not desirable as it introduces a lot of added complexity and overhead). Thank you for your support. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think, this is nothing a library itself can handle. The recommended way is to listen for
https://developer.apple.com/library/archive/technotes/tn2277/_index.html |
Beta Was this translation helpful? Give feedback.
I think, this is nothing a library itself can handle. The recommended way is to listen for
applicationDidEnterBackground
and close all open connections.