I asked a previous question about keeping up a constant link with a database, and someone suggested long polling. I found a small tutorial with a skeleton, but I don't understand some things. The page is here: http://www.google.ca/url?q=http%3A//www.ajaxprojects.com/ajax/tutorialdetails.php%3Fitemid%3D575&ei=AsIzS8nYHNDDlAfY1NSjBw&sa=X&oi=spellmeleon%5Fresult&resnum=2&ct=result&ved=0CAoQhgIwAQ&usg=AFQjCNFjVZDDj1TvYOmNccgaV5XI0rnv9g
First, what happens after 30 seconds? Does it quit? Second, why does it sleep if there's no new content.