[Spread-users] 1 problem with Spread.pm and 1 problem with spread daemon, was

Theo Schlossnagle jesus at omniti.com
Fri Jan 18 00:35:34 EST 2002

On Friday, January 18, 2002, at 12:02  AM, Tom Mornini wrote:
> Turns out, it's not.
> Here's a super simple test case:
> create a process that just sends continually, and kill off the spread 
> server. The multicast() subroutine returns Perl undef. I'm also nearly 
> 100% certain that this happens when calling multicast() repeatedly when 
> the receive buffer overflows and the Spread daemon disconnects you 
> (case #2 below).

Ummm yeah... maybe bad docs... But when I wrote Spread.pm, multicast 
failure returns undef and sets sperror.

That is the intended behaviour.

You can say:
unless(Spread::multicast(...)) {
# error

and it works fine.

Theo Schlossnagle
1024D/82844984/95FD 30F1 489E 4613 F22E  491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA  3D 90 B9 9F BE 27 24 E7

More information about the Spread-users mailing list