summaryrefslogtreecommitdiff
path: root/python/vyos/remote.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-13 18:09:26 +0200
committerGitHub <noreply@github.com>2021-06-13 18:09:26 +0200
commitf8b37aa4792e88a332c0e37f196480ef0220718b (patch)
treeee338b7b0a21a65b3b3c35076405d5fb942b8b97 /python/vyos/remote.py
parentc40dd177b1ab62e311aa8c94e8032ca3b57fd934 (diff)
parent328d070df96b44e9921b59066b366646e669941f (diff)
downloadvyos-1x-f8b37aa4792e88a332c0e37f196480ef0220718b.tar.gz
vyos-1x-f8b37aa4792e88a332c0e37f196480ef0220718b.zip
Merge pull request #879 from erkin/current
T3563: Call `socket.shutdown()` with appropriate argument
Diffstat (limited to 'python/vyos/remote.py')
-rw-r--r--python/vyos/remote.py2
1 files changed, 1 insertions, 1 deletions
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):