STINNER Victor added the comment:

By the way, socket.sendto() has a bug: it stores the result of sendto() into a 
C int. It must store the result into a Py_ssize_t.  sock_call.patch already 
contains a fix for this.

Attached sendto_ssizet.patch is the fix for Python 2.7 and 3.4.

UDP packets cannot be larger than an ethernet frame which is smaller than 
10,000 bytes. That's probabyl why nobody complained before. sendto() is only 
used for UDP, no?

----------
Added file: http://bugs.python.org/file38771/sendto_ssizet.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23834>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to