This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author santoso.wijaya
Recipients Kristoffer.Nilsson, santoso.wijaya
Date 2011-03-22.18:16:51
SpamBayes Score 1.3569146e-11
Marked as misclassified No
Message-id <1300817813.31.0.636709090617.issue11631@psf.upfronthosting.co.za>
In-reply-to
Content
> 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
>>>
History
Date User Action Args
2011-03-22 18:16:53santoso.wijayasetrecipients: + santoso.wijaya, Kristoffer.Nilsson
2011-03-22 18:16:53santoso.wijayasetmessageid: <1300817813.31.0.636709090617.issue11631@psf.upfronthosting.co.za>
2011-03-22 18:16:51santoso.wijayalinkissue11631 messages
2011-03-22 18:16:51santoso.wijayacreate