For not loosing the loop in the mailing list<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Florian Merges</b> &lt;<a href="mailto:fmerges@fstarter.org">fmerges@fstarter.org</a>&gt;<br>
Date: 21-feb-2008 23:28<br>Subject: Re: [Spread-users] Failed to connect to Spread daemon: Accept Session<br>To: John Lane Schultz &lt;<a href="mailto:jschultz@spreadconcepts.com">jschultz@spreadconcepts.com</a>&gt;<br><br>
</span>Sorry, I&#39;m a bit tired, the condition I was using for checking for error was if &lt; 0 as the docs say.<br><br>You&#39;re right: ACCEPT_SESSION -&gt; 1<br><br>But still, is it normal to get failure with Accept Session as the message?<br>

<br>Another different thing, for ensuring that you&#39;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.<br><br>Regards,<br><br>

Florian<br><br><div><span class="gmail_quote">2008/2/21, John Lane Schultz &lt;<a href="mailto:jschultz@spreadconcepts.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jschultz@spreadconcepts.com</a>&gt;:</span><div>
<span class="e" id="q_1183d77891c75b8e_1"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div>

<p>I&#39;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 &quot;1&quot; not &quot;0&quot;.</p>
<p><br></p>
<p>Cheers!</p>
<p>John</p>
<p><br></p>
<p>---</p>
<p>John Lane Schultz</p><span>
<p>Spread Concepts LLC</p>
<p>Phn: 443 838 2200&nbsp;</p>
<p>Fax: 301 560 8875</p></span><div><span>
<p><br></p>
<p>Thursday, February 21, 2008, 1:42:45 PM, you wrote:</p>
<p><br></p>
<div><table border="0" cellpadding="1" cellspacing="2">
<tbody><tr valign="top">
<td style="background-color: rgb(0, 0, 255);" width="12">
<p><span>&gt;</span></p>
</td>
<td style="background-color: rgb(255, 255, 255);" width="812">
<p><span>Hi,</span></p>
<p><br></p>
<p><span>I&#39;m refactoring a web application that uses Spread as the message bus, and I&#39;m getting the following problem: Failed to connect to Spread daemon: Accept session</span></p>
<p><br></p>
<p><span>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&#39;t send a message.</span></p>


<p><br></p>
<p><span>Using Perl modules Spread::Message -&gt; Spread</span></p>
<p><span>without threading, and using the Debian packages for Spread.</span></p>
<p><br></p>
<p><span>Any suggestions?</span></p>
<p><br></p>
<p><span>Kind regards,</span></p>
<p><br></p>
<p><span>Florian</span></p>
</td>
</tr>
</tbody></table>
</div>

</span></div></div>

</blockquote></span></div></div><br>