aboutsummaryrefslogtreecommitdiffstats
path: root/src/sctp_handler.erl
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-04-14 21:00:51 +0200
committerHarald Welte <laforge@gnumonks.org>2011-04-14 21:00:51 +0200
commit097ad255f62f551ae66087770dac5214c2a2856d (patch)
tree4fefa8718a2ccd370479b1ea3395ebba7a995315 /src/sctp_handler.erl
parent3ae9813cb294f0275d4ec6d40cd2e22c3ff03447 (diff)
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...
Diffstat (limited to 'src/sctp_handler.erl')
-rw-r--r--src/sctp_handler.erl2
1 files changed, 1 insertions, 1 deletions
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) ->