summaryrefslogtreecommitdiff
path: root/python/vyos/remote.py
diff options
context:
space:
mode:
authorerkin <e.altunbas@vyos.io>2021-06-13 19:05:05 +0300
committererkin <e.altunbas@vyos.io>2021-06-13 19:05:05 +0300
commit328d070df96b44e9921b59066b366646e669941f (patch)
treeaa60ef60c5aee1dd6f402155f5abc9ab2865dcfc /python/vyos/remote.py
parent1789e0afa8cbdc650ef73bc021fca09ec1ae6056 (diff)
downloadvyos-1x-328d070df96b44e9921b59066b366646e669941f.tar.gz
vyos-1x-328d070df96b44e9921b59066b366646e669941f.zip
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):