]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
flush before reading response from socket
authorGuido van Rossum <guido@python.org>
Sat, 7 Oct 1995 19:27:20 +0000 (19:27 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 7 Oct 1995 19:27:20 +0000 (19:27 +0000)
Demo/pdist/client.py

index d8f210e71bb51d7e5a211c2c036b8919fb934929..3e93f1ce8e30b9e9cf78269056f16b90d73a5a56 100755 (executable)
@@ -135,6 +135,7 @@ class SecureClient(Client, Security):
                import string
                apply(self._pre_init, args)
                Security.__init__(self)
+               self._wf.flush()
                line = self._rf.readline()
                challenge = string.atoi(string.strip(line))
                response = self._encode_challenge(challenge)