Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Is it possible to tell if a continuation request had been cancelled?

Sorry, let me outline a better example :)

Say that a user requests a page in a browser that is serviced by a servlet that uses jetty continuations. This servlet kicks off some long running HTTP request to another API (say 1 minute), and suspends the request. When this HTTP request is finished, the data from the proxied request is processed, and the continuation resumed, and data passed back to the user.

This is all good. But what if the original HTTP request is cancelled by the user in the browser? Can we detect this, complete the continuation, and cancel the proxied HTTP request somehow?

Many thanks


On Mon, Nov 7, 2011 at 7:43 PM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Mon, Nov 7, 2011 at 19:43, Matthew Painter
<matthew.painter@xxxxxxxxxx> wrote:
> So, you can add a ContinuationListener to a Jetty Contination, and listen
> for COMPLETE and TIMEOUT events.
> What about if a request has been cancelled? There seems to be no way to
> listen for this type of event currently? Does this type of event even exist?
> Am I missing something obvious? :)

Requests cannot be canceled.

Or, you have to explain exactly what you mean.

Simon
--
http://cometd.org
http://intalio.com
http://bordet.blogspot.com
----
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless.   Victoria Livschitz
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top