Christian Grothoff 15 vuotta sitten
vanhempi
sitoutus
d251f28095
2 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. 4 0
      ChangeLog
  2. 5 1
      src/daemon/internal.h

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+Thu Jan 27 10:51:39 CET 2011
+	Disable 'EXTRA_CHECKS's by default as suggested in #1652
+ 	(I guess it is time). -CG/timn
+
 Thu Jan 27 10:48:55 CET 2011
 Thu Jan 27 10:48:55 CET 2011
 	Removing bogus assertion in basic authentication code (#1651). -CG/timn
 	Removing bogus assertion in basic authentication code (#1651). -CG/timn
 
 

+ 5 - 1
src/daemon/internal.h

@@ -33,7 +33,11 @@
 #include <gnutls/gnutls.h>
 #include <gnutls/gnutls.h>
 #endif
 #endif
 
 
-#define EXTRA_CHECKS MHD_YES
+/**
+ * Should we perform additional sanity checks at runtime (on our internal
+ * invariants)?  This may lead to aborts, but can be useful for debugging.
+ */
+#define EXTRA_CHECKS MHD_NO
 
 
 #define MHD_MAX(a,b) ((a)<(b)) ? (b) : (a)
 #define MHD_MAX(a,b) ((a)<(b)) ? (b) : (a)
 #define MHD_MIN(a,b) ((a)<(b)) ? (a) : (b)
 #define MHD_MIN(a,b) ((a)<(b)) ? (a) : (b)