diff options
author | erkin <e.altunbas@vyos.io> | 2021-06-13 19:05:05 +0300 |
---|---|---|
committer | erkin <e.altunbas@vyos.io> | 2021-06-13 19:05:05 +0300 |
commit | 328d070df96b44e9921b59066b366646e669941f (patch) | |
tree | aa60ef60c5aee1dd6f402155f5abc9ab2865dcfc /python | |
parent | 1789e0afa8cbdc650ef73bc021fca09ec1ae6056 (diff) | |
download | vyos-1x-328d070df96b44e9921b59066b366646e669941f.tar.gz vyos-1x-328d070df96b44e9921b59066b366646e669941f.zip |
T3563: Call `socket.shutdown()` with appropriate argument
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/remote.py | 2 |
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): |