add send buffer and avoid EAGAIN issues on high load by delegating
buffering to the kernel
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
goto exit_unlock;
}
+ value = KNET_RING_RCVBUFF;
+ if (setsockopt(listener->sock, SOL_SOCKET, SO_SNDBUFFORCE, &value, sizeof(value)) < 0) {
+ savederrno = errno;
+ err = -1;
+ log_err(knet_h, KNET_SUB_LISTENER, "Unable to set listener send buffer: %s",
+ strerror(savederrno));
+ goto exit_unlock;
+ }
+
value = 1;
if (setsockopt(listener->sock, SOL_IP, IP_FREEBIND, &value, sizeof(value)) <0) {
savederrno = errno;