Message208073
>>> import socket
>>> r, w = socket.socketpair()
>>> w.send(b'X' * 1024)
1024
>>> buffer = bytearray()
>>> r.recvfrom_into(buffer)
python: /home/sky/Code/python/cpython3.4/Modules/socketmodule.c:2867: sock_recvfrom_into: Assertion `buf != 0 && buflen > 0' failed.
Aborted (core dumped)
Attached the fix to handle the empty bytearray gracefully. The fix is for Python 3.4. |
|
Date |
User |
Action |
Args |
2014-01-14 05:18:58 | vajrasky | set | recipients:
+ vajrasky, benjamin.peterson |
2014-01-14 05:18:58 | vajrasky | set | messageid: <1389676738.57.0.767136106555.issue20251@psf.upfronthosting.co.za> |
2014-01-14 05:18:58 | vajrasky | link | issue20251 messages |
2014-01-14 05:18:58 | vajrasky | create | |
|