[Spread-users] "connection clsoed" problem

Ryan Caudy rcaudy at gmail.com
Wed Sep 22 18:38:26 EDT 2004


Spread itself is not multithreaded.  It uses an event-handling model,
to schedule timed events and monitor file descriptors, using I/O
multiplexing calls (e.g. select/poll).  Incoming messages from
sessions are queued internally, and sent out when the daemon holds the
token (and flow control permits).  If you have more detailed
questions, I'd be happy to answer as best I can.

Cheers,
Ryan


On Wed, 22 Sep 2004 00:43:23 -0400, Brian Moseley <bcm at maz.org> wrote:
> Ryan Caudy wrote:
> > I wouldn't recommend disconnecting after every multicast.  Reasons why
> > this is a bad idea were included in another recent post of mine.  I
> > would recommend another potential workaround -- try having each of
> > your threads connect to spread at startup, but delay it to avoid any
> > potential race conditions (e.g. thread 1 connects right away, 2
> > connects after 1 second, and so on...).
> 
> hm, i don't think this would be a great solution for me. these threads
> are managed by the servlet container itself (tomcat), and i'm not sure
> there are any hooks for me to have them execute code at startup. i'd
> probably have to do some customization of tomcat itself, which is
> something i'd prefer to avoid. but maybe it's a fallback option if i
> can't figure this problem out.
> 
> > The only drawback I see with sharing a single connection is the
> > potential synchronization overhead, which could hurt throughput by
> > decreasing your degree of concurrency.  Are there others that concern
> > you?
> 
> nope, that's the one. your comment makes me wonder, tho, what kind of
> concurrency does spread itself have?
> 
> thanks for the comments.
> 
> 
> 
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
> http://lists.spread.org/mailman/listinfo/spread-users
> 



-- 
---------------------------------------------------------------------
Ryan W. Caudy
<rcaudy at gmail.com>
---------------------------------------------------------------------
Bloomberg L.P.
<rcaudy1 at bloomberg.net>
---------------------------------------------------------------------
[Alumnus]
<caudy at cnds.jhu.edu>         
Center for Networking and Distributed Systems
Department of Computer Science
Johns Hopkins University          
---------------------------------------------------------------------




More information about the Spread-users mailing list