buffer at the connection level to order in/out stream logging appropriately