From 328d070df96b44e9921b59066b366646e669941f Mon Sep 17 00:00:00 2001 From: erkin Date: Sun, 13 Jun 2021 19:05:05 +0300 Subject: T3563: Call `socket.shutdown()` with appropriate argument --- python/vyos/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/vyos/remote.py b/python/vyos/remote.py index 3013c2f24..c36b77630 100644 --- a/python/vyos/remote.py +++ b/python/vyos/remote.py @@ -159,7 +159,7 @@ def transfer_sftp(mode, local_path, hostname, remote_path,\ return sftp.stat(remote_path).st_size finally: if sock: - sock.shutdown() + sock.shutdown(socket.SHUT_RDWR) sock.close() def upload_sftp(*args, **kwargs): -- cgit v1.2.3