HI,
We are facing speed issues while downloading on the high latency network with per-app VPN client. We are using NWTCPConnection as of now, and would like to test if changing the receive/send buffer sizes would make any difference to handle the high latency environment.
With NWTCPConnection I don't see any option to get socket FD and override the default values, is there any other way to get around this? Would we need to switch to Network Framework or NSStream instead as NSStream gives the socket FD and possible allows to change the buffer sizes.
Thanks.
OK, I continued my chat with the Network framework team about this and the final answer is…
There’s no way to set socket buffer sizes in Network framework.
This isn’t an arbitrary restriction. As I mentioned above, Network framework is designed to live on top of the user space networking stack, and the traditional BSD Socket buffer size concept just doesn’t make sense there.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"