I have a grails-application which uses ajax on several edges.
I trigger large calculations (client -> controller -> service -> controller -> client
) via ajax and sometimes call abort()
on all current running requests. (eg. if the user changed some parameters)
The problem now is that when I call abort()
on my ajax-requests, these requests really stop on client side (perfect!), but the server keeps calculating those aborted requests - it does not know that the user aborted and further processing is useless.
I searched for a way/plugin etc. to tell the server "hey, stop this request, it's not needed anymore", but didn't find a solution.
Any ideas on how I might tackle this or how others have dealt with this?