[issue37542] UDP sendto() sends duplicate packets

2019-07-10 Thread Andy Papageorgiou

New submission from Andy Papageorgiou :

Wireshark reports two identical back to back packets sent for each sendto(), 
timing between packets is between 2 and 10us.

Note this is on a point to point ethernet (just 1 cable, no switches, routers 
or anything else in between) to an embedded platform (Zynq ARM) from an intel 
i7 Window 10 laptop from 2018. The python code is running on the laptop.

python code:
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as s:
s.bind(('', 5704))
while(more_to_send == TRUE)

s.sendto(bytes_to_send, (HOST, UDP_PORT))
data = s.recv(1024)

Wireshark log.
43204   80.146000   192.168.1.20192.168.1.10UDP 566 5704 → 
5604 Len=524 (payload)
43205   80.146003   192.168.1.20192.168.1.10UDP 566 5704 → 
5604 Len=524 (duplicate at payload time + 3us)
43206   80.149112   192.168.1.10192.168.1.20UDP 48  5604 → 
5704 Len=6 (ack)
43207   80.149306   192.168.1.20192.168.1.10UDP 566 5704 → 
5604 Len=524 (payload)
43208   80.149311   192.168.1.20192.168.1.10UDP 566 5704 → 
5604 Len=524 (duplicate at payload time +5us)

I am suspicious this is an artefact of the point to point link.

--
components: Library (Lib)
messages: 347614
nosy: Andy Papageorgiou
priority: normal
severity: normal
status: open
title: UDP sendto() sends duplicate packets
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue37542>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37542] UDP sendto() sends duplicate packets

2019-07-10 Thread Andy Papageorgiou


Change by Andy Papageorgiou :


--
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue37542>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com