[Spread-users] flooding mailboxes SP_error (-8)
John Lane Schultz
jschultz at spreadconcepts.com
Thu May 10 12:12:07 EDT 2007
What Alec said is correct, but it probably won't solve the underlying problem:
your sender(s) is outrunning your receiver(s). Almost surely, you have an
underlying flow control problem. If you want to send really fast, then you will
need to build an ACK protocol so that your senders don't run too far ahead of
Alec H. Peterson wrote:
> Hi Jeremy,
> On May 10, 2007, at 8:53, Jeremy Ma wrote:
>> I'm running into this problem where I have one program sending
>> messages to another program yet the receiving program is not
>> handling/reading the messages fast enough so after about a minute or
>> so, I get an SP_error. The problem lies with my mailbox flooding and
>> eventually spread quitting.
> Yup, it'll do that.
>> One thing that might fix this is if everytime I call a read from my
>> mailbox, I read until my mailbox is empty. Is there some function/flag
>> in spread that will indicate to me when my mailbox is empty?
> SP_poll() is what you're looking for.
Spread Concepts LLC
Phn: 443 838 2200
Fax: 301 560 8875
More information about the Spread-users