I'm working on a REST-like web service using WEBrick servlets
(HTTPServer and AbstractServet).
Does anybody know how the HTTPServer could detect when a client closes
their http session with the server. I would like for the web-server
to "clean up" data associated with the client automatically in the
event of a disconnect.
I've tried several methods already (GenericServer#{config,listeners,
et al} ) to no avail.
Aren't HTTP connections are supposed to be stateless?
ยทยทยท
On Oct 31, 2008, at 12:29 PM, topgun300 wrote:
I'm working on a REST-like web service using WEBrick servlets
(HTTPServer and AbstractServet).
Does anybody know how the HTTPServer could detect when a client closes
their http session with the server. I would like for the web-server
to "clean up" data associated with the client automatically in the
event of a disconnect.