transport.py 文件源码

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

项目:wetland 作者: ohmyadd 项目源码 文件源码
def _parse_channel_open_failure(self, m):
        chanid = m.get_int()
        reason = m.get_int()
        reason_str = m.get_text()
        m.get_text()  # ignored language
        reason_text = CONNECTION_FAILED_CODE.get(reason, '(unknown code)')
        self._log(
            ERROR,
            'Secsh channel %d open FAILED: %s: %s' % (
                chanid, reason_str, reason_text)
        )
        self.lock.acquire()
        try:
            self.saved_exception = ChannelException(reason, reason_text)
            if chanid in self.channel_events:
                self._channels.delete(chanid)
                if chanid in self.channel_events:
                    self.channel_events[chanid].set()
                    del self.channel_events[chanid]
        finally:
            self.lock.release()
        return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号