New submission from Alex Gaynor: Attached patch is a first-cut at a backport patch. Note that it is not quite a 1-1 with the original:
The SSL module backport added a new field for the Python-level "SSLSocket" reference (ssl_sock), which was a different object from the _socket.socket (PySocketObject *) object. This is all effectively supplanted by the new owner field, so this patch does that as well. The patch looks basically complete to me, but the tests hang for some reason: in a test where the client side hangs up (test_check_hostname) the server side of the socket blocks in a call to read(). I'm not sure why. Antoine, or anyone else who worked on the original patch, did you run into any issues like this, or have any other insights into what might be causing it? ---------- files: memory-bio.diff keywords: patch messages: 228618 nosy: alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou priority: normal severity: normal status: open title: [backport] ssl.MemoryBIO versions: Python 2.7 Added file: http://bugs.python.org/file36820/memory-bio.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22559> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com