summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):