Hello Carsten,

thanks for the patch, it works as far as I can see.

Michael

-------- Original-Nachricht --------
> Datum: Wed, 23 Nov 2011 11:26:08 -0600
> Von: Carsten Neumann <carsten_neum...@gmx.net>
> An: opensg-users@lists.sourceforge.net
> Betreff: Re: [Opensg-users] OpenSG1.8 - Disconnecting ClusterWindow and       
> ClusterServer

>       Hello Michael,
> 
> On 11/23/2011 03:34 AM, Michael Raab wrote:
> > today I found one more issue related to that topic. When disconnecting
> more than the half of all connected channels of a group connection, my
> application crashed. The reason was that GroupConnection and 
> GroupSockConnection
> both use index based access on internal vectors of sockets and channels.
> When calling erase during disconnect() elements inside these vectors are
> shifted, which is not a good idea. Please find attached a patch that tries to
> solve that (it works for our purposes).
> 
> you are correct, there is a problem with the channel <-> index mapping 
> when disconnecting endpoints. Thank you for sending the patch, 
> unfortunately I don't believe it is the correct solution because there 
> are a number of places that use the size of e.g. _selection 
> (getChannelCount()) or _sockets to get the number of connected 
> endpoints. Using erase is fine as long as the channel <-> index mapping 
> is adjusted correctly, see the attached patch.
> 
>       Cheers,
>               Carsten

-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!               
Jetzt informieren: http://www.gmx.net/de/go/freephone

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to