make a copy of the command on the server side

If the command does not have a return value or the command size is small,
we can make a copy of the command, and let the client to write to the
command buffer before the server processes the command