unmk2 / jaxl

Automatically exported from code.google.com/p/jaxl
GNU General Public License v3.0
0 stars 0 forks source link

multiple "bosh connections" inside same browser #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Abi ,
   I am developing a chat via web using your library jaxl. I realized that if I logon to the same browser using two usernames, the system creates a "loop".

How can I solve this problem?

Thanks.

What steps will reproduce the problem?:

1. open chrome browser  on page chatbosh.php and login with user <bygio>
2. open another chrome browser on page chatbosh.php and login with user <all>
3. the system enters into a “loop” (see log attached) and the first user 
disconnects
after a short time.

What is the expected output? What do you see instead?:

I would expect that the user <bygio> and <all> manage to chat at the same time 
with the user <admin>. This happens only if I use two different browsers, in 
fact if I open chrome I login using user <bygio> then I open the other browser 
e.g. firefox and I login with the user <all>, it works correctly (see log 
attached).      

What version of the product are you using? On what operating system?:

jaxl: "2.1.2" https://github.com/abhinavsingh/JAXL.git
Client Windows/chrome/firefox
Server: Linux/Ejabberd/nginx

Original issue reported on code.google.com by giovanni...@gmail.com on 28 Feb 2011 at 9:44

Attachments:

GoogleCodeExporter commented 9 years ago
HI Giovanni,

I saw ur log jaxl_log_ok_different_browsers.txt and if you notice between 
134-154, after ping request for some reason your application tries to connect 
back again.

Since Jaxl PHP Bosh support relies on Session variables where it stores 
sid,rid,jid in it's current form you cannot have two connected sessions from 
the same browser. (Since session variables will start clashing with each other).

Original comment by mailsfor...@gmail.com on 12 Mar 2011 at 9:17

GoogleCodeExporter commented 9 years ago
I have reopened this issue. Possibilities should be made to run multiple jaxl 
instance from browser by using some other medium for session storage. Yet to 
investigate into possibility of such an implementation.

Original comment by mailsfor...@gmail.com on 29 Mar 2011 at 10:42

GoogleCodeExporter commented 9 years ago
Hello Friends,

I am no longer accepting issues/bugs on google code issue list.

Have any Question? Want to discuss? Need Help? Use Google Group/Forum.
https://groups.google.com/forum/#!forum/jaxl

Found something missing or a bug in the source code? Kindly report an issue.
https://github.com/abhinavsingh/JAXL/issues

Sorry for any inconvenience caused.

--
Abhinav

Original comment by mailsfor...@gmail.com on 12 Sep 2012 at 9:52