[Spread-users] Spread and reliable message communication

Tim Peters tim at zope.com
Fri Aug 8 16:27:22 EDT 2003

[Tuvi, Selim]
> Actually the SP_receive call doesn't return any errors since we
> don't get any exceptions from the Python wrapper. It just waits
> as if no more mesages have been received.

That's surprising.  You could try adding some prints to spreadmodule.c's
(that's the Python wrapper) mailbox_receive() function.  That's the
implementation of the Python-level mailbox.receive() call.  You can see that
it's checking for all sorts of exceptional returns, and converting them into
Python exceptions.

I should add that I haven't tried the wrapper with Spread 3.17 yet.  Our app
is still using 3.16.2.  I suppose it's possible something has changed in an
incompatible way, but don't think it's likely.  In particular, any negative
return value from SP_receive() other than BUFFER_TOO_SHORT or
GROUPS_TOO_SHORT will raise *some* exception, even if it's one the wrapper
doesn't know about (if nothing else, spread_error() will raise an
"unrecognized error" then).

More information about the Spread-users mailing list