[Spread-users] "connection clsoed" problem

Ryan Caudy rcaudy at gmail.com
Tue Sep 21 21:28:47 EDT 2004


Hi,

Spread certainly does support multiple connections from a single
process.  A quick check for your problem suggests a possible root
cause in the Java Library's implementation.  Basically,
InputStream.read(byte[] b) isn't guaranteed to read the full length of
b, and so a more correct version of the library would loop on reading
(as it does in several other situations).  I see one more instance of
this problem in the code.  I'll create a patch that fixes both, when I
have some time to do so.

Is the second message that you multicast sent by the same
thread/connection?  That exception should *only* be thrown during an
attempt to connect, so I feel like there must be some detail of the
scenario I'm missing.  Can you explain further?

Cheers,
Ryan

On Tue, 21 Sep 2004 14:45:02 -0400, Brian Moseley <bcm at maz.org> wrote:
> hiya. i'm encountering an exception when sending multiple messages over
> a single connection from a java servlet to spread.
> 
> i open the connection and multicast a message, but when i then multicast
> a second message, i get the exception "Connection clsoed during connect
> attempt to read authnames".
> 
> once this has happened, i can no longer connect to spread from the
> servlet, even if i reload its webapp.
> 
> my webapp is coded to open a spread connection for each thread executing
> my servlet. is it possible that i'm getting this problem because spread
> doesn't support more than one connection from a single process?
> 
> ========
> 
> spread.conf:
> 
> DebugFlags = { PRINT EXIT }
> EventLogFile = /usr/local/massive/logs/spread.log
> RuntimeDir = /usr/local/massive/var
> EventTimeStamp = "[%a %d %b %Y %H:%M:%S]"
> #RequiredAuthMethods = "IP"
> 
> Spread_Segment  127.0.0.255:4803 {
> 
>         localhost               127.0.0.1
> }
> 
> _______________________________________________
> 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