auto buffer flush after 20s timeout