Now the server work as requested.
When the server finish a batch and doesn't find work in queue susped itself until a new packet arrives.