<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Alec H. Peterson wrote:
<blockquote
 cite="midC6EEBA69-5B3D-4895-BA4A-38E8F4B97E57@messagesystems.com"
 type="cite">Hi Jeremy,
  <br>
  <br>
On May 10, 2007, at 8:53, Jeremy Ma wrote:
  <br>
  <br>
  <blockquote type="cite">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.
    <br>
  </blockquote>
  <br>
Yup, it'll do that.
  <br>
  <br>
  <blockquote type="cite">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?
    <br>
  </blockquote>
  <br>
SP_poll() is what you're looking for.
  <br>
</blockquote>
quoting Tim Peters (2004-03-18) ...<br>
"""<br>
A Spread mailbox <b class="moz-txt-star"><span class="moz-txt-tag">*</span>is<span
 class="moz-txt-tag">*</span></b> a socket handle, and, e.g., can be
passed to select() like any other socket handle. There's also the
SP_poll() function, but it's not particularly good even for polling
because it doesn't return an error code if the client has gotten
disconnected (it returns 0 then, so a "polling loop" just using
SP_poll() will never know it if the client gets disconnected).<br>
<pre wrap="">"""

</pre>
<br>
<blockquote
 cite="midC6EEBA69-5B3D-4895-BA4A-38E8F4B97E57@messagesystems.com"
 type="cite"><br>
Alec
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
_______________________________________________
  <br>
Spread-users mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:Spread-users@lists.spread.org">Spread-users@lists.spread.org</a>
  <br>
<a class="moz-txt-link-freetext" href="http://lists.spread.org/mailman/listinfo/spread-users">http://lists.spread.org/mailman/listinfo/spread-users</a>
  <br>
</blockquote>
<br>
</body>
</html>