[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

WEBrick detect http client disconnect

topgun300

10/31/2008 7:25:00 PM

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
2 Answers

Eric Hodel

10/31/2008 10:05:00 PM

0

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.

Aren't HTTP connections are supposed to be stateless?

Sweetbac

7/30/2010 9:40:00 PM

0


"Fred Funk" <onetaste2000@yahoo.com> funked in message

> Yeah, that was my first show, 1/28/87

> Fred

I never figured you to be a "touch head"?
I'm guessing you got a late start, Frederick?