[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

Kristoffer Nilsson report at bugs.python.org
Tue Mar 22 10:30:39 CET 2011


New submission from Kristoffer Nilsson <novafaen at gmail.com>:

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.

----------
components: IDLE, Windows
messages: 131731
nosy: Kristoffer.Nilsson
priority: normal
severity: normal
status: open
title: Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11631>
_______________________________________


More information about the Python-bugs-list mailing list