Decrease proxy65 buffer sizes to 8192 bytes.
The original size of 65535 confused clients with tight shapers (thanks to Evgeniy Khramtsov) SVN Revision: 2097
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user