is there a way to find the timeouted fd in libevent?
By using libevent-2.x, there was a option EV_TIMEOUT that labels timeout
on specific fd:
event_set(&ev, fd, EV_READ | EV_TIMEOUT, worker, priv_data);
By setting the timeout to 5 minutes, the fd will set to be timeout by
server. I need the hint to free the priv_data or do some statistic on
server side, is there was a way to find the timeout fd only by setting the
EV_TIMEOUT option(e.g., callback)?
No comments:
Post a Comment