Quantcast
Viewing all articles
Browse latest Browse all 5359

Python • Re: UDP sendto blocks code execution when the interface is down

Does it actually block, or does it just stall for a few seconds?

I have had the problem in embedded Ethernet of stalling when the destination host is not present. Although you'd expect UDP to be literally "fire and forget" there is other stuff that has to work.

In my case I think this is the culprit, but it's a discussion from 10 years ago that still seems to be an issue today:
https://forum.pjrc.com/index.php?thread ... ine.30473/

tl;dr probably ARP failure.

Statistics: Posted by ame — Wed Aug 28, 2024 10:20 pm



Viewing all articles
Browse latest Browse all 5359

Trending Articles