]> granicus.if.org Git - libevent/commit
configure: avoid false positive in DragonFlyBSD
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Sat, 19 Aug 2017 23:01:46 +0000 (16:01 -0700)
committerAzat Khuzhin <azat@libevent.org>
Sat, 2 Feb 2019 12:13:53 +0000 (15:13 +0300)
commit9c720b70731b27acc115bb12b5a8b6c480d92442
treea142dc5c4c46ec600e08a2755636d6fd6f588188
parent1811a040ef54180c208a6d2cf19bec7a36ebe337
configure: avoid false positive in DragonFlyBSD

by default, the max buffer size is 16K and histeresis is at 50%, so
a bigger read is needed to unlock writes than you would expect from
other BSD (512 bytes)

this doesn't introduce any regression on FreeBSD 11.1, OpenBSD 6.1, NetBSD 7.1,
macOS 10.12.6 and of course DragonFlyBSD 4.8.1, and most of them show
a max pipe size of 64K, so the read call should drain them all regardless
of how conservative they are on the free pipe space they will require
(usually 512 bytes) before kevent reports the fd as ready for write.

I couldn't find a reference to which bug this code was trying to look for
and it seems to be there from the beginning of git history so it might be
no longer relevant.

Issue: #548
(cherry picked from commit 1dfec8a97094a26317eac9b3d8a1c16eb1a7dbea)
cmake/CheckWorkingKqueue.cmake
configure.ac