[Serusers] bug in tm module - 503 Service Unavailable

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Sun Mar 16 20:43:55 CET 2003


On Mar 16, 2003 at 01:35, Jiri Kuthan <jiri at iptel.org> wrote:
> At 12:06 PM 3/13/2003, Andrei Pelinescu-Onciul wrote:
> >On Mar 13, 2003 at 09:25, Tirp?k Mikl?s <mtirpak at sztaki.hu> wrote:
> >> Hi,
> >> 
> >> I think there is a bug in the tm module of he CVS tree:
> >> 
> >> timer.c line 283:
> >> if (SEND_BUFFER( r_buf )<=0) {
> >> 
> >> SEND_BUFFER returns -1 on error, and 0 on success, so it should be
> >> if (SEND_BUFFER( r_buf )==-1) {
> >
> >Yes, you are right. Thanks.
> >Bug fixed on cvs.
> 
> Just for my understanding -- how come that msg_send can return <=0
> and still be ok?

msg_send returns 0 on success and -1 on error.

Andrei



More information about the sr-users mailing list