some old glibc may define MSG_ZEROCOPY but not SO_ZEROCOPY :-(

master
leitner 5 years ago
parent 261420b7b6
commit 8b0450cd29

@ -234,7 +234,7 @@ eagain:
else
sent=writev(s,v,headers);
} else {
#ifdef MSG_ZEROCOPY
#if defined(MSG_ZEROCOPY) && defined(SO_ZEROCOPY)
if (!nozerocopy && sum>=8*1024) {
/* MSG_ZEROCOPY has page table management overhead,
* it only pays off after 8k or so */

Loading…
Cancel
Save