最近在看tornado的源码,有个RT的疑问
try:
event_pairs = self._impl.poll(poll_timeout)
except Exception as e:
# Depending on python version and IOLoop implementation,
# different exception types may be thrown and there are
# two ways EINTR might be signaled:
# * e.errno == errno.EINTR
# * e.args is like (errno.EINTR, 'Interrupted system call')
if errno_from_exception(e) == errno.EINTR:
continue
else:
raise
在调用poll方法等待事件的过程中epoll是马上返回还是至少有一个事件后才返回
添加回答
举报
0/150
提交
取消