This applies to when using restview on a directory of reST files, in which case each file opened creates a new request handler. With the original code, opening a second file in a new browser tab while the first is open (thus causing two long polling requests to be active) would cause them both to start self-refreshing endlessly. Change `while last_atime == saved_atime` to `while True` to see what I mean.

The solution I implemented was to ensure only one long polling request is active at a time by having each request monitor the global last_atime value and close if it changes, which happens when a new file is loaded. The proper solution would be to have the request handler properly handle simultaneous open requests—any suggestions?