I'm using Jetty with Continuations to implement long polling, but I don't see a way to detect a client disconnecting.
I understand that in the time between the first run (creation of the Continuation) and any subsequent run there may be no traffic between the client and server due to the nature of HTTP, but I can settle with just being able to detect a client being disconnected upon trying to send a message back (server invoking the Continuation).
I've been trying to find a way of detecting that the writer wasn't actually writing to a client, but I can't seem to find one.