avoiding the while loop to continue, giving full control of the buffer to the server