flush buffer between requests