Fwd: [Spread-users] Failed to connect to Spread daemon: Accept Session

Florian Merges fmerges at fstarter.org
Thu Feb 21 14:30:29 EST 2008


For not loosing the loop in the mailing list

---------- Forwarded message ----------
From: Florian Merges <fmerges at fstarter.org>
Date: 21-feb-2008 23:28
Subject: Re: [Spread-users] Failed to connect to Spread daemon: Accept
Session
To: John Lane Schultz <jschultz at spreadconcepts.com>

Sorry, I'm a bit tired, the condition I was using for checking for error was
if < 0 as the docs say.

You're right: ACCEPT_SESSION -> 1

But still, is it normal to get failure with Accept Session as the message?

Another different thing, for ensuring that you're really disconnected from
Spread, is it necessary to loop till you get the right result back?
otherwise you will end up with Name not Unique.

Regards,

Florian

2008/2/21, John Lane Schultz <jschultz at spreadconcepts.com>:
>
>  I'm not familiar with the Perl module, but in the C version the #define
> ACCEPT_SESSION, indicating a successful return from SP_connect, is actually
> "1" not "0".
>
>
> Cheers!
>
> John
>
>
> ---
>
> John Lane Schultz
>
> Spread Concepts LLC
>
> Phn: 443 838 2200
>
> Fax: 301 560 8875
>
>
> Thursday, February 21, 2008, 1:42:45 PM, you wrote:
>
>
>   >
>
> Hi,
>
>
> I'm refactoring a web application that uses Spread as the message bus, and
> I'm getting the following problem: Failed to connect to Spread daemon:
> Accept session
>
>
> And the app. is unable to send data. I think it has something to do with
> the connecting and disconnecting of the Spread, but basically from the
> documentation, Accept session should be 0 as a sign that everything is fine,
> but still I can't send a message.
>
>
> Using Perl modules Spread::Message -> Spread
>
> without threading, and using the Debian packages for Spread.
>
>
> Any suggestions?
>
>
> Kind regards,
>
>
> Florian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.spread.org/pipermail/spread-users/attachments/20080221/147470a7/attachment.html 


More information about the Spread-users mailing list