WEBrick detect http client disconnect

T

topgun300

Hello all:

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.

Thanks for your time,
Dave
 
E

Eric Hodel

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.

Aren't HTTP connections are supposed to be stateless?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top