mod: refactory ae_poller_wait's timeout process