avalon_clear_readbuf is no longer required.