[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.
Santoso Wijaya
report at bugs.python.org
Tue Mar 22 19:16:53 CET 2011
Santoso Wijaya <santoso.wijaya at gmail.com> added the comment:
> this will lock
I should expect so! recvfrom is a blocking method. The interpreter will block on said socket until (if recvfrom) data arrives from the remote end of the socket.
sendto is non-blocking, though. And it works for me:
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
>>> sock.sendto('data', ('localhost', 1005))
4
>>>
----------
nosy: +santa4nt
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11631>
_______________________________________
More information about the Python-bugs-list
mailing list