0
我有(使用的paramiko書面)以下代碼被稱爲多進程的paramiko在_get_channel掛起同時的利用多重
def traffic(q, e):
e.open()
def open()
assert self.closed
self._channel = self._get_channel()
self.stdin = io.TextIOWrapper(CommandStdIn(self._channel))
self.stdout = self._channel.makefile()
self.stderr = self._channel.makefile_stderr()
q = Queue()
p = Process(target = self.traffic, args = (q, other_args))
p.start()
p.join()
無多,這工作得很好。但是對於多處理,它停在
%paramiko.transport-WARNING: Success for unrequested channel! [??]
%paramiko.transport-ERROR: Channel request for unknown channel 19
它掛在self._get__channel()
部分。可能是什麼原因?