Skip to content

Commit

Permalink
TLS 1.3 recv only fixed with try/except
Browse files Browse the repository at this point in the history
  • Loading branch information
g-chauvel committed Mar 30, 2021
1 parent 58c3fc9 commit dc57cbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/test/test_ssl.py
Expand Up @@ -2347,7 +2347,10 @@ def _test_connect(self):
sys.stdout.write("POLL after poll\n")
for fd, event in ret:
sys.stdout.write("POLL before recv fd:{} event:{} s.fileno:{}\n".format(fd, event, s.fileno()))
recv = s.recv(4096)
try:
recv = s.recv(4096)
except ssl.SSLWantReadError:
pass
sys.stdout.write("POLL after recv fd:{} event:{}\n".format(fd, event))
sys.stdout.write("_test_connect EXIT\n")

Expand Down

0 comments on commit dc57cbe

Please sign in to comment.