[Qt-interest] cancel http requests

Till Oliver Knoll till.oliver.knoll at gmail.com
Thu Aug 25 21:53:56 CEST 2011



Am 25.08.2011 um 16:42 schrieb Atlant Schmidt <aschmidt at dekaresearch.com>:

> Mandeep:
> 
>  But that doesn't actually have any effect on the
>  server, does it? There's no way in the HTTP protocol
>  to cancel an in-flight request; one can just ignore
>  the data returned by the server.

Gone is gone, that's correct. But chances are - the requests being handled by Qt asynchronously - that the request has not yet been sent, and hence I strongly assume that Qt would not process a cancelled request any further.

However I strongly agree with the suggested techniques not to send unnecessary requests in the first place: use timeouts, threshold, caching... you can still cancel requests on top of that when you see fit.

Cheers, Oliver


More information about the Qt-interest-old mailing list