Returning 0 for lsp_server_read if queue is empty