[httperf] a bug of httperf?

=?EUC-KR?B?waS/+LGz?= weongyo at cdnetworks.co.kr
Tue Oct 28 21:46:26 PST 2008


Hello,

I'm using a CVS version of httperf with libevent but I faced a problem
when I ran the following command:

./httperf -v --uri=/50k/07/00/694.jpg --server=192.168.200.91
--num-conns=200000 --num-calls=1 --rate 18000

Httperf was just stopped. After applying the patch attached with email,
the assertion was failed.

Is it a bug or a thing intentional?

regards,
Weongyo Jeong

-------------- next part --------------
Index: gen/rate.c
===================================================================
RCS file: /cvsroot/httperf/httperf/src/gen/rate.c,v
retrieving revision 1.9
diff -u -r1.9 rate.c
--- gen/rate.c	12 Sep 2007 04:47:27 -0000	1.9
+++ gen/rate.c	29 Oct 2008 05:42:32 -0000
@@ -34,6 +34,7 @@
 
 #include "config.h"
 
+#include <assert.h>
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -119,6 +120,7 @@
       if (rg->done)
 	return;
     }
+  assert((rg->next_time - now) != 0.0);
   rg->timer = timer_schedule ((Timer_Callback) tick, arg, rg->next_time - now);
 }
 


More information about the httperf mailing list