You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Rajiv Kasera <ra...@pinelabs.com> on 2012/07/20 09:32:47 UTC

Session sharing across socket connections

Hi,

 

I ran into a weird problem on my LIVE environment where one session was
shared across multiple sockets. This led to an inconsistent behavior of the
application. Please let me know if this is a valid scenario and how can this
be prevented.

 

Thanks,
Rajiv


RE: Session sharing across socket connections

Posted by Rajiv Kasera <ra...@pinelabs.com>.
In the below scenario I am not sharing data across sessions. The issue here is that multiple clients are connecting to the MINA server using phone lines through a common server. Now this common server keeps one active session with MINA server and uses the same for passing packets from various clients to the MINA server, leading to unpredictable behavior at the client side when the concurrency increases.

I will be working with the team owning the common server on resolving this issue. Thanks for your help.

Regards,
Rajiv

-----Original Message-----
From: Emmanuel Lécharny [mailto:elecharny@gmail.com] 
Sent: Friday, July 20, 2012 1:22 PM
To: users@mina.apache.org
Subject: Re: Session sharing across socket connections

Le 7/20/12 9:32 AM, Rajiv Kasera a écrit :
> Hi,
>
>   
>
> I ran into a weird problem on my LIVE environment where one session 
> was shared across multiple sockets. This led to an inconsistent 
> behavior of the application. Please let me know if this is a valid 
> scenario and how can this be prevented.

Why would you share a session across many sockets ? When you connect to the server, a socket is opened, and a session is created. This session must be specific to that socket.

You should find another way to share *informations* accross sessions, instead of sharing a session across sockets.

Or there is something missing in the description of your problem...


--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


Re: Session sharing across socket connections

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 7/20/12 9:32 AM, Rajiv Kasera a écrit :
> Hi,
>
>   
>
> I ran into a weird problem on my LIVE environment where one session was
> shared across multiple sockets. This led to an inconsistent behavior of the
> application. Please let me know if this is a valid scenario and how can this
> be prevented.

Why would you share a session across many sockets ? When you connect to 
the server, a socket is opened, and a session is created. This session 
must be specific to that socket.

You should find another way to share *informations* accross sessions, 
instead of sharing a session across sockets.

Or there is something missing in the description of your problem...


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com