문제

I am using jetty continuations and I was wondering if I can detect that the client has disconnected(closed connection to jetty server) from the server.

Thanks, Alfred

도움이 되었습니까?

해결책

I don't know if there is a cleaner way to do it but, when you call continuation.resume() you will get an IllegalStateException if the client has disconnected. Just catch that exception.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top