Discard unused buffer if nothing is read from the socket.