[New-bugs-announce] [issue37535] Client SSLSocket with select.select() always returns readable with OpenSSL 1.1.1

Dean report at bugs.python.org
Tue Jul 9 23:57:44 EDT 2019


New submission from Dean <scaram at gmail.com>:

Hi, I've come across an issue with OpenSSL 1.1.1, when a client socket wrapped using ssl.wrap_socket() is used in select.select() its always returning ready for reading even though there appears to be nothing to read.

To reproduce:
0. Extract files from attached zip
1. Run server.py
2. Run client.py

I expect client.py to print "Nothing to read" and then b'\x00\x01\x02\x03', which it does with Python 2.7.14, 3.6.8 and 3.7.3 and OpenSSL 1.0.1f and 1.1.0g. 

With OpenSSL 1.1.1 it prints 'Pending: 0' and blocks on the sock.recv(1) call.

Thanks!

----------
assignee: christian.heimes
components: SSL
files: ssl_select.zip
messages: 347595
nosy: christian.heimes, ddddaaaa
priority: normal
severity: normal
status: open
title: Client SSLSocket with select.select() always returns readable with OpenSSL 1.1.1
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7
Added file: https://bugs.python.org/file48464/ssl_select.zip

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37535>
_______________________________________


More information about the New-bugs-announce mailing list