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...
This commit is contained in:
Harald Welte 2011-04-14 21:00:51 +02:00
parent 3ae9813cb2
commit 097ad255f6
1 changed files with 1 additions and 1 deletions

View File

@ -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) ->