If leftovers.len ever go below 0, something is seriously wrong elsewhere.
/ Per Hedbor ()
Previous text:
2004-06-20 23:27: Subject: Bilaga till: Drowning in the Shuffler (SEGV)
Index: Shuffler.cmod
RCS file: /pike/data/cvsroot/Pike/7.7/src/post_modules/Shuffler/Shuffler.cmod,v retrieving revision 1.29 diff -u -r1.29 Shuffler.cmod --- Shuffler.cmod 4 Apr 2004 15:03:37 -0000 1.29 +++ Shuffler.cmod 20 Jun 2004 21:15:29 -0000 @@ -26,7 +26,7 @@ #include "shuffler.h" #include "sources.h"
-#if 0 +#if 1 //srb #include <stdio.h> #define SHUFFLE_DEBUG1(fmt, arg1) fprintf(stderr,"Shuffle[%p]:" fmt, arg1) #define SHUFFLE_DEBUG2(fmt, arg1, arg2) fprintf(stderr,"Shuffle[%p]:" fmt, arg1, arg2) @@ -270,7 +270,7 @@ { int l = BLOCK; SHUFFLE_DEBUG2("_send_more(%d)\n", t, fd );
- if( t->leftovers.len )
- if( t->leftovers.len>0 ) l = t->leftovers.len; _request( t, l ); }
/ Brevbäraren