Skip to content

Commit

Permalink
Pass tests on Python 3.8 and 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonspeed committed Dec 14, 2023
1 parent cf1d4e6 commit 572ef9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/wsgi_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ def server(sock, site, log):
client_socket, addr = sock.accept()
serv.process_request([addr, client_socket, wsgi.STATE_IDLE])
return True
except (ssl.SSLZeroReturnError, ssl.SSLEOFError):
# Can't write a response to a closed TLS session
return True
except Exception:
traceback.print_exc()
return False
Expand Down

0 comments on commit 572ef9f

Please sign in to comment.