Post

Replies

Boosts

Views

Activity

Reply to iOS Network Framework and TCP ZeroWindow
Hello Matt, Thanks for your answer. Why does your app close the TCP connection in this context? Are you doing a send() while the window size is 0 on the device and the data does not reach the device, but your app assumes that it did and optimistically closes the connection? Our app closes the TCP connection because only few connections are allowed simultaneously, so we do not need to "occupy" the device unnecessarily. This a "good practice" sent by the manufacturer of the device. But I assume that we would have the same problem without closing the TCP connection right away. Because we need to close the connection anyway when the app is sent to the background, right? If you are experiencing this problem, and control the device you are sending data to, you could build in your own acknowledgement behavior. While this is tedious, it would at least allow you to know that the device is aking 65bytes etc... and that each packet of data was received. Sadly we do not control the device so we cannot build and acknowledgement system and are relying on the acknowledgement built-in the TCP protocol. Thanks,
Aug ’21