SESSION_TIMEOUT
This commit is contained in:
parent
fa25d60893
commit
6a1159ed3f
|
@ -57,6 +57,9 @@
|
||||||
|
|
||||||
-define(SM_POOL, sm_pool).
|
-define(SM_POOL, sm_pool).
|
||||||
|
|
||||||
|
%% todo...
|
||||||
|
-define(SESSION_TIMEOUT, 60000).
|
||||||
|
|
||||||
%%%=============================================================================
|
%%%=============================================================================
|
||||||
%%% Mnesia callbacks
|
%%% Mnesia callbacks
|
||||||
%%%=============================================================================
|
%%%=============================================================================
|
||||||
|
@ -138,7 +141,7 @@ sesstab(false) ->
|
||||||
mqtt_persistent_session.
|
mqtt_persistent_session.
|
||||||
|
|
||||||
call(SM, Req) ->
|
call(SM, Req) ->
|
||||||
gen_server2:call(SM, Req, infinity).
|
gen_server2:call(SM, Req, ?SESSION_TIMEOUT). %%infinity).
|
||||||
|
|
||||||
%%%=============================================================================
|
%%%=============================================================================
|
||||||
%%% gen_server callbacks
|
%%% gen_server callbacks
|
||||||
|
|
Loading…
Reference in New Issue