flush before reading response from socket

This commit is contained in:
Guido van Rossum 1995-10-07 19:27:20 +00:00
parent 11bb1743b6
commit 5a6ad8fb71
1 changed files with 1 additions and 0 deletions

View File

@ -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)