[issue23176] socket.recvfrom(0) waits for data

2015-01-05 Thread Sworddragon
Sworddragon added the comment: If there is no real use for socket.recvfrom(0) (and then probably socket.recv(0) too) maybe a bufsize argument of 0 should throw an exception? -- ___ Python tracker _

[issue23176] socket.recvfrom(0) waits for data

2015-01-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: That's not surprising, since revcfrom uses select() on the socket regardless of the value its argument. I'm not sure what the use of calling revcfrom(0) is. -- nosy: +benjamin.peterson ___ Python tracker

[issue23176] socket.recvfrom(0) waits for data

2015-01-05 Thread Sworddragon
New submission from Sworddragon: For example on sending ICMP packets and receiving the data socket.recv(1) does wait for data while socket.recv(0) doesn't. socket.recvfrom(1) does wait for data too but I'm also seeing that socket.recvfrom(0) is waiting for data which doesn't look correct (at l