engine.py 文件源码

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

项目:solaris-ips 作者: oracle 项目源码 文件源码
def reset(self):
                """Reset the state of the transport engine.  Do this
                before performing another type of request."""

                for c in self.__chandles:
                        if c not in self.__freehandles:
                                try:
                                        self.__mhandle.remove_handle(c)
                                except pycurl.error:
                                        # If cleanup is interrupted, it's
                                        # possible that a handle was removed but
                                        # not placed in freelist.  In that case,
                                        # finish cleanup and appened to
                                        # freehandles.
                                        pass
                                self.__teardown_handle(c)

                self.__active_handles = 0
                self.__freehandles = self.__chandles[:]
                self.__req_q = deque()
                self.__failures = []
                self.__success = []
                self.__orphans = set()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号