Improve handling of ENOBUFS by not running in a tight loop forever.
authorflorian <florian@openbsd.org>
Fri, 15 Sep 2023 05:32:00 +0000 (05:32 +0000)
committerflorian <florian@openbsd.org>
Fri, 15 Sep 2023 05:32:00 +0000 (05:32 +0000)
commitcece5eebf1b537dde7c716dcd3197e0b31964d63
tree117f93fbfca1aaab4e87c33085fda4503052f2fd
parent3a958a18070f4bc62e4376dc18e2c0731ce60b5b
Improve handling of ENOBUFS by not running in a tight loop forever.

This cherry-picks upstream git commit
0ee44ef384593ed0382d1ce6048d5a9c9440b45c.

Issue reported by landry@, which could be traced back to a buggy WiFi
driver that would constantly return ENOBUFS. This in turn lead
unwind(8) enter a tight loop through poll / sendto without making any
progress and burning 100% cpu.

OK sthen

I missed to commit this file when commiting to unbound.
Pointed out by tb, thanks!
sbin/unwind/libunbound/util/netevent.c