开发者

disable keep-alive in NSURLConnection

开发者 https://www.devze.com 2023-01-01 04:50 出处:网络
How can I disable keep-alive when using NSURLConnection? Seems, that after cancelling and close i开发者_开发技巧t it still saves somewhere a socket that I was connected to server with and while the se

How can I disable keep-alive when using NSURLConnection? Seems, that after cancelling and close i开发者_开发技巧t it still saves somewhere a socket that I was connected to server with and while the server fetches for information i cannot access another urls from the same server. I wonder if there is a way to completely reset a socket and start another one.

Thanks,

Nava


Setting timeout on the server solved the problem

0

精彩评论

暂无评论...
验证码 换一张
取 消