connection.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:ave 作者: sonyxperiadev 项目源码 文件源码
def accept(self, timeout=None):
        if timeout == None:
            timeout = -1
        events = self.poll(select.POLLIN | errmask, timeout)
        if not events:
            raise ConnectionTimeout('nothing to accept')
        if events[0][1] & (select.POLLHUP | select.POLLERR):
            raise ConnectionClosed('error condition on socket')
        return Connection.accept(self, Class=BlockingConnection)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号