mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
flush before reading response from socket
This commit is contained in:
parent
11bb1743b6
commit
5a6ad8fb71
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user