SESSION_TIMEOUT

This commit is contained in:
Feng 2015-09-10 16:17:26 +08:00
parent fa25d60893
commit 6a1159ed3f
1 changed files with 4 additions and 1 deletions

View File

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