server: server loop will exhaust data inputs before sleeping
commit74ce435d97ca4f6f81645d755d04123f075aa42b
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 15 Dec 2009 14:43:38 +0000 (15 15:43 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 16 Dec 2009 07:09:35 +0000 (16 08:09 +0100)
tree2b0233e145ef75f485050291928d7531fe7dd01a
parent4a2f4e34336dbb662a308e5a881edbba9f3657ec
server: server loop will exhaust data inputs before sleeping

By exhausting data on input, the performance will be more
consistent + the code more clearly distinguishes between
polling and processing. A test showed gdb packet load
performance go from ~1550kByte/s to 1650kBytes/s + being
more stable.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/server/server.c