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 Kristoffer.Nilsson
Recipients Kristoffer.Nilsson
Date 2011-03-22.09:30:38
SpamBayes Score 0.0018606364
Marked as misclassified No
Message-id <1300786239.46.0.274643383137.issue11631@psf.upfronthosting.co.za>
In-reply-to
Content
Running Windows 7 Enterprise 64 bit, and Python 7.2.1 64 bit Python failed to read and send UDP packages when ran in cmd.exe. This is not the case when ran with IDLE.

Example; two simple programs. First one listening to a UDP port

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind(('', 10015))

reading data from socket and printing the received data, using;
data, addr = sock.recvfrom(1024)

this will lock, if not ran from IDLE.

Same for sending data, using;

sock.sendto(DATA_MESSAGE, (HOST, 10015))

this will work with both, but only send when running from IDLE.
History
Date User Action Args
2011-03-22 09:30:39Kristoffer.Nilssonsetrecipients: + Kristoffer.Nilsson
2011-03-22 09:30:39Kristoffer.Nilssonsetmessageid: <1300786239.46.0.274643383137.issue11631@psf.upfronthosting.co.za>
2011-03-22 09:30:38Kristoffer.Nilssonlinkissue11631 messages
2011-03-22 09:30:38Kristoffer.Nilssoncreate