394
415
FakeChannel(), 'sftp', StubServer(tcs), StubSFTPServer,
395
416
root=tcs._root, home=tcs._server_homedir)
396
417
self.sftp_server = sftp_server
399
420
sftp_server.start_subsystem(
400
421
'sftp', None, ssh.SocketAsChannelAdapter(self.request))
402
423
if (len(e.args) > 0) and (e.args[0] == errno.EPIPE):
403
424
# it's okay for the client to disconnect abruptly
404
425
# (bug in paramiko 1.6: it should absorb this exception)
409
430
# This typically seems to happen during interpreter shutdown, so
410
431
# most of the useful ways to report this error won't work.
411
432
# Writing the exception type, and then the text of the exception,