android-volley icon indicating copy to clipboard operation
android-volley copied to clipboard

Request cancellation still makes the server connection alive.

Open rexalways opened this issue 9 years ago • 1 comments

While a request is cancelled, it is just flagged as cancelled and the httpconnection is still alive and doing it's functionality. We just don't receive the response from the server. But this consumes bandwidth and some issues as well. Like if I have my own extended class of com.android.volley.Request and the request is cancelled then the method "parseNetworkResponse" is always called if the network request has been started but deliverResponse is not called.

rexalways avatar Dec 01 '15 19:12 rexalways

This can be fixed by making some minor changes in the Volley library. We have done this in many of our projects by making some enhancements in the Request, HurlStack (as our projects target > API 9) and BasicNetwork java files. We would love to contribute it back but not sure how to proceed. BTW you may contact me at [email protected] (Better if I can get a way to make it available publicly)

itsrts avatar Dec 01 '15 19:12 itsrts