Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

dimaqq/bpo-31122

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Reproduce BPO-31122

https://bugs.python.org/issue31122

Current status

  • Python-3.7.4 buggy
  • Python-3.8.2 buggy
  • Python-3.9.0a4 buggy
  • Python-2.7.16 OK, raises ssl.SSLEOFError

Schematic

client.pyinterposer.pyhttpbin.org

(local port) localhost:31122 httpbin.org:443

Instructions

Run the interposer, that acts as man-in-the-middle and closes client's connection after specific number of bytes is delivered from upstream to the client.

> python interposer.py
# ignore errors

Now run the client:

> python client.py
Traceback (most recent call last):
  File "client.py", line 7, in <module>
    sock = ssl.create_default_context().wrap_socket(s, server_hostname="httpbin.org")
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
OSError: [Errno 0] Error

About

Reproduce BPO-31122

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages