Properly flush SSH socket output.
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 11 Feb 2015 07:04:55 +0000 (08:04 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 11 Feb 2015 07:04:55 +0000 (08:04 +0100)
pdm/sshsock.py

index 7ee26e8..2a1882a 100644 (file)
@@ -46,6 +46,7 @@ class sshsocket(object):
 
     def send(self, data, flags = 0):
         self.proc.stdin.write(data)
+        self.proc.stdin.flush()
         return len(data)
 
     def recv(self, buflen, flags = 0):