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 <[email protected]> wrote:

> Hi,
>
> On Mon, Nov 7, 2011 at 19:43, Matthew Painter
> <[email protected]> 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
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to