Basically, we store some data on our servers, and the client makes requests to retrieve the data. Once it is retrieved, I'd like to either remove it from our servers, or flag it so that it won't get resent on a subsequent request. That's why I was hoping to detect if the response was successfully sent.
Date: Tue, 16 Apr 2013 10:48:58 -0700
From: joakim@xxxxxxxxxxx
To: jetty-dev@xxxxxxxxxxx
Subject: Re: [jetty-dev] Servlet response failure detection
This is discouraged.
As you have discovered, there are many layers between your code on the servlet side and the implementation of generating and sending back the response to the client.
Each layer can consume the the response content buffer from the servlet entirely, making it highly unreliable to test for errors at the servlet side.
(this generalization includes Jetty, JVM, OS, and networking level layers)
Question is, why do you need to do this?
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev