New submission from Jean-Paul Calderone inva...@example.invalid:
Here's a transcript which demonstrates the blocking behavior:
import socket
import time
import ssl
s = ssl.wrap_socket(socket.socket())
s.connect(('localhost', 8443))
s.send('GET /async.rpy HTTP/1.1\r\n\r\n')
27
Changes by Jean-Paul Calderone inva...@example.invalid:
--
title: PySSL_SSLRead loops until data is available, even in non-blocking mode
- PySSL_SSLread loops until data is available, even in non-blocking mode
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
It was corrected between 2.6.5 and 2.6.6 (see r79291 and also potentially
r80453).
Here, on the 2.6 maintenance branch:
import socket, time, ssl
s = ssl.wrap_socket(socket.socket())
s.connect(('linuxfr.org', 443))
s.setblocking(False)
Jean-Paul Calderone inva...@example.invalid added the comment:
Hm. I must have been testing with old versions, since I can't reproduce this
now. Sorry for the noise.
--
resolution: out of date - duplicate
status: pending - closed
___
Python