Fixes subtle SSL recvInto bug.
This resulted in a "value out of range: -1" exception inside `recvInto` (on the `copyMem` line). Basically readIntoBuf was returning `-1`.
This commit is contained in:
parent
ceb1a1b688
commit
bb949a75db
1 changed files with 1 additions and 0 deletions
|
|
@ -257,6 +257,7 @@ when defineSsl:
|
|||
if not fut.read():
|
||||
# Socket disconnected.
|
||||
if SocketFlag.SafeDisconn in flags:
|
||||
opResult = 0.cint
|
||||
break
|
||||
else:
|
||||
raiseSSLError("Socket has been disconnected")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue