--On 29 May 2011 09:05:17 +0200 Wouter Verhelst <w@...112...> wrote:
Better yet: don't stop handling and loop over them to flag, which will take time; instead, just create a new queue of requests to handle, and only handle the FLUSH request once the old queue is empty.
Indeed. And you can handle the flush request in parallel to the new queue. -- Alex Bligh