Message262488
SystemError indicates an internal error that is not supposed to be triggerable from Python code. We should probably raise ValueError like plain sockets instead.
>>> s = create_connection(("python.org", 443))
>>> s.recv(-1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: negative buffersize in recv
>>> ss = ssl.wrap_socket(s)
>>> ss.recv(-1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/proj/python/cpython/Lib/ssl.py", line 910, in recv
return self.read(buflen)
File "/home/proj/python/cpython/Lib/ssl.py", line 787, in read
return self._sslobj.read(len, buffer)
File "/home/proj/python/cpython/Lib/ssl.py", line 573, in read
v = self._sslobj.read(len or 1024)
SystemError: Negative size passed to PyBytes_FromStringAndSize |
|
Date |
User |
Action |
Args |
2016-03-26 07:28:02 | martin.panter | set | recipients:
+ martin.panter |
2016-03-26 07:28:02 | martin.panter | set | messageid: <1458977282.91.0.0462711735469.issue26644@psf.upfronthosting.co.za> |
2016-03-26 07:28:02 | martin.panter | link | issue26644 messages |
2016-03-26 07:28:01 | martin.panter | create | |
|