]> granicus.if.org Git - ejabberd/commitdiff
Decrease proxy65 buffer sizes to 8192 bytes.
authorBadlop <badlop@process-one.net>
Mon, 25 May 2009 11:17:11 +0000 (11:17 +0000)
committerBadlop <badlop@process-one.net>
Mon, 25 May 2009 11:17:11 +0000 (11:17 +0000)
The original size of 65535 confused clients with tight
shapers (thanks to Evgeniy Khramtsov)

SVN Revision: 2096

src/mod_proxy65/mod_proxy65_stream.erl

index c6d0103ae233b47437c9f01973532ef59a17b481..e1bc8ebe8f0a1916aa24cba7b7a3323aa1ca8982 100644 (file)
@@ -90,8 +90,8 @@ init([Socket, Host, Opts]) ->
     process_flag(trap_exit, true),
     AuthType = gen_mod:get_opt(auth_type, Opts, anonymous),
     Shaper = gen_mod:get_opt(shaper, Opts, none),
-    RecvBuf = gen_mod:get_opt(recbuf, Opts, 65535),
-    SendBuf = gen_mod:get_opt(sndbuf, Opts, 65535),
+    RecvBuf = gen_mod:get_opt(recbuf, Opts, 8192),
+    SendBuf = gen_mod:get_opt(sndbuf, Opts, 8192),
     TRef = erlang:send_after(?WAIT_TIMEOUT, self(), stop),
     inet:setopts(Socket, [{active, true}, {recbuf, RecvBuf}, {sndbuf, SendBuf}]),
     {ok, wait_for_init, #state{host      = Host,