set restart = true (if called reconnect);
clear buffer when response not is 200