ProcessOne SiteCustomer Helpdesk and FeedbackFollow us on Twitter
 
   
 
Need Information On Testing HTTP Over Bosh Using TSung 1.5
Posted: 08 November 2013 10:15 AM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2013-11-06

On TSung 1.5.0, I tried the below mentioned steps to make TSung work with HTTP Over BOSH. However, it didn’t work and looking for some kind of solution to this issue.

Changed the below part of the code in ts_bosh.erl:
connect(Host, Port, Opts, Type) when Type =:= ‘tcp’ ; Type =:= ‘ssl’ ->
  Parent = self(),
  Path = “/httpbind/httpbind/”,
  Host =
  Pid = spawn(fun() -> loop(Host, Port, Path, Opts, Type, Parent) end),
  {ok, Pid}.

Also I tried to change ‘When’ condition as I think it might be wrong as the Type that we are passing from tsung.xml is bosh and =:= checks for ‘exact match’ in erl. Below are the changes:
connect(Host, Port, Opts, Type) when Type =:= ‘bosh’ ; Type =:= ‘bosh_ssl’ ->
  Parent = self(),
  Path = “/httpbind/httpbind/”,
  Host =
  Pid = spawn(fun() -> loop(Host, Port, Path, Opts, Type, Parent) end),
  {ok, Pid}.

Used the below steps to build the source:
make clean
Make uninstall
./configure—prefix=/usr/local1
make
make install

Even after performing these changes and building from source, I am getting the below error for the request:
=ERROR REPORT==== 8-Nov-2013::13:18:11 ===
** State machine <0.60.0> terminating
** Last message in was {timeout,#Ref<0.0.0.185>,end_thinktime}
** When State == think
**  Data == {state_rcv,none,
          {{0,0,0,0},0},
          undefined,0,10000,“myserver.abc.com”,8080,
          ts_bosh,
          {proto_opts,negociate,”/chat”,10,600000,infinity,32768,
          32768,undefined,undefined},
          false,1,undefined,true,undefined,
          {1383,896891,24087},
          3,3,false,undefined,0,[],<<>>,
          {jabber_session,undefined,undefined,undefined,undefined,
          undefined,undefined},
          0,3,524288,524288,
          [{tsung_userid,3}],
          ts_jabber,[],undefined,none}
** Reason for termination =
** {function_clause,[{ts_bosh,connect,
              [“myserver.abc.com”,8080,
              [{ip,{0,0,0,0}},{port,0}],
              tcp],
              [{file,“src/tsung/ts_bosh.erl”},{line,76}]},
          {ts_client,reconnect,5,
              [{file,“src/tsung/ts_client.erl”},{line,868}]},
          {ts_client,handle_next_request,2,
              [{file,“src/tsung/ts_client.erl”},{line,716}]},
          {gen_fsm,handle_msg,7,[{file,“gen_fsm.erl”},{line,505}]},
          {proc_lib,init_p_do_apply,3,
              [{file,“proc_lib.erl”},{line,239}]}]}

My application is configured on /httpbind/httpbind on 8080 port.

Profile
 
 
   
 
 
‹‹ how to send invite to muc?      tsung error ››