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.
NSURLConnection has a -cancel method which causes further delegate messages to not be sent.
Share
Yes,
-cancelcloses the TCP connection, so no more data will be sent by the server.