diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/input/ipaccess.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index e1936af..96828eb 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -587,6 +587,11 @@ static void update_fd_settings(struct e1inp_line *line, int fd) #endif #endif } + + val = 1; + ret = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val)); + if (ret < 0) + LOGP(DLINP, LOGL_ERROR, "Failed to set TCP_NODELAY: %s\n", strerror(errno)); } /* callback of the OML listening filedescriptor */ |