Kaydet (Commit) 5a6ad8fb authored tarafından Guido van Rossum's avatar Guido van Rossum

flush before reading response from socket

üst 11bb1743
...@@ -135,6 +135,7 @@ class SecureClient(Client, Security): ...@@ -135,6 +135,7 @@ class SecureClient(Client, Security):
import string import string
apply(self._pre_init, args) apply(self._pre_init, args)
Security.__init__(self) Security.__init__(self)
self._wf.flush()
line = self._rf.readline() line = self._rf.readline()
challenge = string.atoi(string.strip(line)) challenge = string.atoi(string.strip(line))
response = self._encode_challenge(challenge) response = self._encode_challenge(challenge)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment