Commit fdbeefcc authored by Dietmar Maurer's avatar Dietmar Maurer

disable Nagle algorithm

parent 67637d3a
......@@ -3,6 +3,7 @@ package PVE::APIDaemon;
use strict;
use warnings;
use POSIX ":sys_wait_h";
use Socket qw(IPPROTO_TCP TCP_NODELAY SOMAXCONN);
use IO::Socket::INET;
use PVE::SafeSyslog;
......@@ -28,6 +29,10 @@ sub new {
ReuseAddr => 1) ||
die "unable to create socket - $@\n";
# we ofter observe delays when using Nagle algorithm,
# so we disable that to maximize performance
setsockopt($socket, IPPROTO_TCP, TCP_NODELAY, 1);
my $cfg = { %args };
my $self = bless { cfg => $cfg }, $class;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment