I read for a while about canceling a request in modification 2. As far as I read about canceling requests, onFailure () is called, and the request is removed from the queue if not sent. But what happens if the request is already sent (I know that we will receive the callback onFailure ()), but did the actual HTTP request cancel on the server?
To clarify, let's say I upload an image to a server. The request has been sent, and now the call is canceled, I know that I will receive the onFailure callback for Android, but will the image be uploaded to the server or will it be left on the server side?
This may be the main thing in network requests, but since this is my first meeting that does not know how canceling requests.
source
share