Conversation
FreeBSD requires explicit -lpthread (pthreads lives in libthr.so, not libc) and an explicit sys/socket.h include for sockaddr types (not transitively included via netinet/in.h as on Linux).
Run writer and reader as concurrent coroutines to avoid deadlocking when the 128KB payload exceeds FreeBSD's 32KB TCP send buffer.
|
An automated preview of the documentation is available at https://154.corosio.prtest3.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-02-19 13:40:50 UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #154 +/- ##
===========================================
+ Coverage 82.23% 82.26% +0.03%
===========================================
Files 70 70
Lines 5876 5876
===========================================
+ Hits 4832 4834 +2
+ Misses 1044 1042 -2
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
GCOVR code coverage report https://154.corosio.prtest3.cppalliance.org/gcovr/index.html Build time: 2026-02-19 13:44:52 UTC |
Link pthreads via Threads::Threads in CMakeLists.txt — required on FreeBSD where pthread isn't implicitly linked.
Add missing #include <sys/socket.h> in endpoint_convert.hpp — FreeBSD requires it for sockaddr definitions (Linux provides it transitively via other headers).
Fix testLargeTransfer deadlock — the 128KB write-then-read was sequential in a single coroutine, which deadlocks when the payload exceeds the kernel's TCP send buffer (smaller on FreeBSD). The fix runs the writer and reader as concurrent coroutines.