From 5a6ad8fb71501ec050f5ab6dac2763da0bf1f89e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 7 Oct 1995 19:27:20 +0000 Subject: [PATCH] flush before reading response from socket --- Demo/pdist/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Demo/pdist/client.py b/Demo/pdist/client.py index d8f210e71bb..3e93f1ce8e3 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)