mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-30 17:43:57 +01:00
814b80c644
Don't set the PID to 'undefined' when a session goes offline, as this looses the information which node created the session table entry. Fixes #1196.
14 lines
494 B
Erlang
14 lines
494 B
Erlang
-ifndef(EJABBERD_SM_HRL).
|
|
-define(EJABBERD_SM_HRL, true).
|
|
|
|
-record(session, {sid, usr, us, priority, info = []}).
|
|
-record(session_counter, {vhost, count}).
|
|
-type sid() :: {erlang:timestamp(), pid()}.
|
|
-type ip() :: {inet:ip_address(), inet:port_number()} | undefined.
|
|
-type info() :: [{conn, atom()} | {ip, ip()} | {node, atom()}
|
|
| {oor, boolean()} | {auth_module, atom()}
|
|
| {num_stanzas_in, non_neg_integer()}].
|
|
-type prio() :: undefined | integer().
|
|
|
|
-endif.
|