]> git.kaiwu.me - haproxy.git/commitdiff
[BUILD] code did not build in full debug mode
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Jan 2008 11:18:15 +0000 (12:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 20 Jan 2008 22:56:06 +0000 (23:56 +0100)
src/checks.c
src/proto_http.c

index b2580576a05a458e68a92ee34a9721a6f44442bc..42859caddf8af4efe08175afb24eda7ecb2a65cc 100644 (file)
@@ -10,6 +10,7 @@
  *
  */
 
+#include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
index 3e255797fbe7f090b3f42b84f9114c73ed315c24..69864779350d96368a1c2bc752f4e4b0b1d563f7 100644 (file)
@@ -634,7 +634,7 @@ void process_session(struct task *t, struct timeval *next)
                /* DEBUG code : this should never ever happen, otherwise it indicates
                 * that a task still has something to do and will provoke a quick loop.
                 */
-               if (tv_remain2(&now, &t->expire) <= 0)
+               if (tv_ms_remain2(&now, &t->expire) <= 0)
                        exit(100);
 #endif
                *next = t->expire;