Multiple copies being sent via UDP?
lizzie
lizzie at cc.gatech.edu
Thu Feb 17 11:37:11 EST 2000
Hi--
I've got a nifty issue which someone might be able to shed some light
on. I'm running on an NT machine, Python 1.5.2. Each time I send a UDP
packet, it actually appears on the network multiple times (used
NetworkSpy to sniff)
Debugging information shows that for each time the code is called, 4 UDP
packets are sent - it first sends 1, and then milliseconds later sends 3
at the same time. (If it's any help, this isn't happening with TCP)
While this is not a tragedy, it is stuffing the network with more info
than I want. Does anyone have any ideas?
---code snippet---
def SendUDP(self, ip, msg):
try:
UDPSocket = socket(AF_INET, SOCK_DGRAM)
UDPSocket.sendto(msg, (ip, PORT))
if DEBUG:
print 'sending UDP', msg,'to', ip, 'of length', len(msg)
except SendUDPFailure:
print 'Failed to send', msg, 'to', ip, 'via UDP'
---------
~lizzie
lizzie at cc.gatech.edu
More information about the Python-list
mailing list