aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-04-17 10:57:46 +0200
committerlaforge <laforge@osmocom.org>2020-05-28 09:56:38 +0000
commit62725d0b58a4842ce96ac9107c565de40fe4e945 (patch)
treea0dd4dc677132568af35cc98ef4146de5302c0ac
parenta5eef0eb829a906701ea06e36b53bf541a01d01a (diff)
src/input/ipaccess.c: set TCP_NODELAYHEADmaster
Set TCP_NODELAY for all RSL/OML sockets. Related: SYS#4906 Change-Id: Ia3d4c41bf0659e682f0b7ae5f3d58ed0f28edb58
-rw-r--r--src/input/ipaccess.c5
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 */