From ad394a2aa805a7b452c40f3d567607b26e8263f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9F=D1=80=D0=BE?= =?UTF-8?q?=D1=85=D0=BE=D1=80=D0=BE=D0=B2?= Date: Thu, 5 Jul 2018 23:49:42 +0200 Subject: [PATCH] Lower memory consumption by-default --- src/mtp_handler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mtp_handler.erl b/src/mtp_handler.erl index 80110ee..c7da37f 100644 --- a/src/mtp_handler.erl +++ b/src/mtp_handler.erl @@ -19,7 +19,7 @@ -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). --define(MAX_SOCK_BUF_SIZE, 1024 * 300). % Decrease if CPU is cheaper than RAM +-define(MAX_SOCK_BUF_SIZE, 1024 * 50). % Decrease if CPU is cheaper than RAM -define(MAX_UP_INIT_BUF_SIZE, 1024 * 1024). %1mb -define(APP, mtproto_proxy).