Reputation: 6958
NSURLConnection
has a -cancel
method which causes further delegate messages to not be sent. However, does this also make the endpoint stop sending data to the client? I have a interface where the user can begin downloading a huge image, but also "cancel" at any moment. I don't want the device to keep receiving unwanted data as that would be a waste of bandwidth.
Upvotes: 0
Views: 402
Reputation:
Yes, -cancel
closes the TCP connection, so no more data will be sent by the server.
Upvotes: 1