This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/2299
osmo_ss7: Instruct libosmo-netif to use {TCP,SCTP}_NODELAY on all sockets
If we don't do this, we get some nasty packet delays, which are
sufficient enough to trigger re-transmissions of an M3UA ASP-UP packet
even over loopback/localhost on an otherwise unloaded system.
Change-Id: I6aa4eb421ecb483d3da1b0ce3aa6511d161c3750
---
M src/osmo_ss7.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/99/2299/1
diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index aa331b9..68315e7 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -1044,6 +1044,7 @@
" client for ASP %s\n", asp->cfg.name);
return -1;
}
+ osmo_stream_cli_set_nodelay(asp->client, true);
osmo_stream_cli_set_addr(asp->client, asp->cfg.remote.host);
osmo_stream_cli_set_port(asp->client, asp->cfg.remote.port);
osmo_stream_cli_set_local_addr(asp->client, asp->cfg.local.host);
@@ -1486,6 +1487,7 @@
osmo_stream_srv_link_set_data(oxs->server, oxs);
osmo_stream_srv_link_set_accept_cb(oxs->server, xua_accept_cb);
+ osmo_stream_srv_link_set_nodelay(oxs->server, true);
osmo_stream_srv_link_set_addr(oxs->server, oxs->cfg.local.host);
osmo_stream_srv_link_set_port(oxs->server, oxs->cfg.local.port);
osmo_stream_srv_link_set_proto(oxs->server, IPPROTO_SCTP);
--
To view, visit https://gerrit.osmocom.org/2299
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6aa4eb421ecb483d3da1b0ce3aa6511d161c3750
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>