Heartbeat notes [feel free to ignore]

0 views
Skip to first unread message

David Pollak

unread,
Jan 26, 2010, 2:50:42 PM1/26/10
to liftweb
Folks,

I'm rooting around in Lift/Jetty code to try to create a heartbeat system.  I'm going to post random notes as I learn things... kinda stream of consciousness.

We're not the only ones that care:
http://markmail.org/message/22segyhko3csr5sy#query:jetty%20detecting%20browser%20disconnect+page:1+mid:mel7wohcvsfd76cy+state:results

It's likely that there are a ton of factors (keep-alive, proxy, etc.) but perhaps an approximation will do.

More as I find it.

Thanks,

David

--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

David Pollak

unread,
Jan 26, 2010, 3:35:30 PM1/26/10
to liftweb
Okay... I've done this checkin:

http://github.com/dpp/liftweb/commit/be575ea2ceb6510c17b905e12b2d9b22db892d37

It adds a heartbeat function to LiftRules for Comet-enabled containers (read Jetty).  There's a modification to the examples code to demonstrate it.

On my local box, "it worked fine".

Looking for feedback on (1) if it gets the job done for Daniel & Co. and (2) how we can make it more general so that we can bring it forward to Lift 2.0.
Reply all
Reply to author
Forward
0 new messages