mirror of https://github.com/python/cpython
Issue #2143: Fix embedded readline() hang on SSL socket EOF.
This commit is contained in:
parent
a5cfcad0e3
commit
ac2ed1e0ac
|
@ -175,6 +175,7 @@ else:
|
|||
chr = None
|
||||
while chr != "\n":
|
||||
chr = self.sslobj.read(1)
|
||||
if not chr: break
|
||||
str += chr
|
||||
return str
|
||||
|
||||
|
|
Loading…
Reference in New Issue