From: Erich Lin Date: 2006-07-11T01:00:18+09:00 Subject: While loops If I have this snippet of code for the main page that loads: def index while 1 logger.info("hi") end end Then, I close the browser that opened that page, I notice that the logger continues to print "hi" to the file (using tail -f). Is there a way to stop the server from running such actions when the browser is closed? (The logger.info was just an example. It could be anything else) Thanks