added additional iohandler_poll_timeout function