If the /wait request returns response 400 (Bad request) with a message
indicating that lastSerial exceeds the current maximum serial, it means
that the service has restarted and the buffer was reset.
-
Reset the client
lastSerialto 0. - Retry the request.