Browse Source

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

master
Felix von Leitner 1 year ago
parent
commit
3262a8dbf6
  1. 2
      io/iob_send.c

2
io/iob_send.c

@ -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