From 097ad255f62f551ae66087770dac5214c2a2856d Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 14 Apr 2011 21:00:51 +0200 Subject: MGW_NAT: disable nagle on SCTP sockets This should cut down our latencies in forwarding the messages in the mgw_nat. Thanks to zecke for the hint... --- src/sctp_handler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sctp_handler.erl') diff --git a/src/sctp_handler.erl b/src/sctp_handler.erl index e0dcba5..657d015 100644 --- a/src/sctp_handler.erl +++ b/src/sctp_handler.erl @@ -39,7 +39,7 @@ rewrite_act_mod }). --define(COMMON_SOCKOPTS, [{active, once}, {reuseaddr, true}]). +-define(COMMON_SOCKOPTS, [{active, once}, {reuseaddr, true}, {sctp_nodelay, true}]). % initialize the sockets towards MSC (listening) and STP (connect) init(MscLocalIP, MscLocalPort, MscRemoteIP, StpRemoteIP, StpRemotePort, RewriteActMod) -> -- cgit v1.2.3