mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Save bosh version with session (thanks to Stefan Strigler)
SVN Revision: 2281
This commit is contained in:
parent
f07df01185
commit
202bece16d
@ -3,12 +3,12 @@
|
|||||||
%%% Author : Stefan Strigler <steve@zeank.in-berlin.de>
|
%%% Author : Stefan Strigler <steve@zeank.in-berlin.de>
|
||||||
%%% Purpose : HTTP Binding support (JEP-0124)
|
%%% Purpose : HTTP Binding support (JEP-0124)
|
||||||
%%% Created : 21 Sep 2005 by Stefan Strigler <steve@zeank.in-berlin.de>
|
%%% Created : 21 Sep 2005 by Stefan Strigler <steve@zeank.in-berlin.de>
|
||||||
%%% Id : $Id: ejabberd_http_bind.erl 273 2007-08-15 13:53:00Z sstrigler $
|
%%% Id : $Id: ejabberd_http_bind.erl 274 2007-08-15 13:54:05Z sstrigler $
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
|
|
||||||
-module(ejabberd_http_bind).
|
-module(ejabberd_http_bind).
|
||||||
-author('steve@zeank.in-berlin.de').
|
-author('steve@zeank.in-berlin.de').
|
||||||
-vsn('$Rev: 273 $').
|
-vsn('$Rev: 274 $').
|
||||||
|
|
||||||
-behaviour(gen_fsm).
|
-behaviour(gen_fsm).
|
||||||
|
|
||||||
@ -34,7 +34,7 @@
|
|||||||
-include("jlib.hrl").
|
-include("jlib.hrl").
|
||||||
-include("ejabberd_http.hrl").
|
-include("ejabberd_http.hrl").
|
||||||
|
|
||||||
-record(http_bind, {id, pid, to, hold, wait}).
|
-record(http_bind, {id, pid, to, hold, wait, version}).
|
||||||
|
|
||||||
%% http binding request
|
%% http binding request
|
||||||
-record(hbr, {rid,
|
-record(hbr, {rid,
|
||||||
@ -162,9 +162,9 @@ process_request(Data) ->
|
|||||||
pid = Pid,
|
pid = Pid,
|
||||||
to = {XmppDomain,
|
to = {XmppDomain,
|
||||||
XmppVersion},
|
XmppVersion},
|
||||||
version = Version,
|
|
||||||
wait = Wait,
|
wait = Wait,
|
||||||
hold = Hold})
|
hold = Hold,
|
||||||
|
version = Version})
|
||||||
end),
|
end),
|
||||||
handle_http_put(Sid, Rid, Key, NewKey, Wait, Hold,
|
handle_http_put(Sid, Rid, Key, NewKey, Wait, Hold,
|
||||||
Attrs, Packet, true)
|
Attrs, Packet, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user