r24225: Convert reply_flush to the new API