(sorry to resend it again, just add some "enter" to make it easier to read)<br><br><div>&nbsp;I try to implement this logic in application level, but it fails.<br><div><br>There is a sender and a receiver in my cases. <br>1.
Sender will publish a event (A) to spread and subscribe the
corresponding ACK event (AC). <br>If it can not receive the ACK event (AC)
in a short period of time (10 secs) it will resend the <br>event (A) and
wait for the ACK event (AC) again until it receive the ACK event (AC)
successfully.<br>2. The receiver will send out the ACK event (AC) after receiving the event (A). <br><br>It
works in first case: The sender can receive ACK event (A) immediately
if receiver is alive <br>when sender sends out the event (A) in the first
time.<br><br>It fails in second case: The receiver is down when the
sender sends out the event (A) in <br>the first time. When the sender is
blocked in receive(), I manually start the receiver.<br>&nbsp;10 seconds later,
the sender tries to send out the event (A) for the second time. <br>Now the
receiver is alive and it can receive the the event (A) and send out the
ACK event. <br>But, the sender still can not receiver the ACK event (AC).
The same thing happens for<br>&nbsp;next tries.&nbsp; It stills fails even when
sender disconnects and connects each time before<br>&nbsp;it sends the event (A)
to receiver.<br><br>Is it a bug or do I miss something?<br><br>Thanks in advance!</div></div><div>&nbsp;</div><div style="padding: 2px 0pt; font-size: 12px; font-family: Arial Narrow;">------------------&nbsp;原始邮件&nbsp;------------------</div><div style="font-size: 12px;"><div id="menu_sender"><b>发件人:</b>&nbsp;"Alexey Zakhlestin"&lt;indeyets@gmail.com&gt;;</div><div><b>发送时间:</b>&nbsp;2008年10月23日(星期四) 凌晨0:28</div><div><b>收件人:</b>&nbsp;"lzhshen"&lt;29585543@qq.com&gt;; </div><div><b>抄送:</b>&nbsp;"spread-users"&lt;spread-users@lists.spread.org&gt;; </div><div><b>主题:</b>&nbsp;Re: [Spread-users] how does Spread make sure that the event is successfully delivered to the subscriber?</div></div><div>&nbsp;</div>
<div style="font-weight: normal;">
On Wed, Oct 22, 2008 at 12:58 PM, lzhshen &lt;29585543@qq.com&gt; wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; When the event publisher sends the event to Spread and the subscriber<br>&gt; lose the connection with Spread, will this event be lost forever? Will<br>&gt; Spread sends the same event to the subscriber when it connects to Spread<br>&gt; again?<br><br>it won't.<br>this kind of logic is supposed to be implemented on application-level.<br><br>think of spreas as of "UDP". if you need to verify delievery, you have<br>to implement "TCP" on top of it<br><br>-- <br>Alexey Zakhlestin<br>http://blog.milkfarmsoft.com/</div>