I've been doing some research about cancelling ajax requests, and I've read several threads here about this topic. I found this very informative topic:
Abort Ajax requests using jQuery
According to it, when you use abort() method, the request is cancelled on the client side, but not necessarily on server side. Thing is my request demands some heavy calculations, and I would like to be able to stop on both client and server side, if it starts taking too long. Is there any way I could do that?
ps: timeouts on the request wouldn't help me here. I'm using JSF for calling a bean that calls an optimization algorithm, and I'd like to stop the algorithm on demand, if possible.