Message131760
> 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
>>> |
|
Date |
User |
Action |
Args |
2011-03-22 18:16:53 | santoso.wijaya | set | recipients:
+ santoso.wijaya, Kristoffer.Nilsson |
2011-03-22 18:16:53 | santoso.wijaya | set | messageid: <1300817813.31.0.636709090617.issue11631@psf.upfronthosting.co.za> |
2011-03-22 18:16:51 | santoso.wijaya | link | issue11631 messages |
2011-03-22 18:16:51 | santoso.wijaya | create | |
|