summaryrefslogtreecommitdiffstats
path: root/Demo/pdist
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-10-07 19:27:20 (GMT)
committerGuido van Rossum <guido@python.org>1995-10-07 19:27:20 (GMT)
commit5a6ad8fb71501ec050f5ab6dac2763da0bf1f89e (patch)
tree7e7a031360b1738df1c664bad1b6afe499953383 /Demo/pdist
parent11bb1743b61535aeb06c512283b17a07a3cb9233 (diff)
downloadcpython-5a6ad8fb71501ec050f5ab6dac2763da0bf1f89e.zip
cpython-5a6ad8fb71501ec050f5ab6dac2763da0bf1f89e.tar.gz
cpython-5a6ad8fb71501ec050f5ab6dac2763da0bf1f89e.tar.bz2
flush before reading response from socket
Diffstat (limited to 'Demo/pdist')
-rwxr-xr-xDemo/pdist/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Demo/pdist/client.py b/Demo/pdist/client.py
index d8f210e..3e93f1c 100755
--- a/Demo/pdist/client.py
+++ b/Demo/pdist/client.py
@@ -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)