gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r18242 - in libmicrohttpd: . doc src/daemon src/include


From: gnunet
Subject: [GNUnet-SVN] r18242 - in libmicrohttpd: . doc src/daemon src/include
Date: Mon, 21 Nov 2011 18:52:44 +0100

Author: grothoff
Date: 2011-11-21 18:52:44 +0100 (Mon, 21 Nov 2011)
New Revision: 18242

Modified:
   libmicrohttpd/ChangeLog
   libmicrohttpd/doc/microhttpd.texi
   libmicrohttpd/src/daemon/connection.c
   libmicrohttpd/src/include/microhttpd.h
Log:
added flag for 'Date:' suppression

Modified: libmicrohttpd/ChangeLog
===================================================================
--- libmicrohttpd/ChangeLog     2011-11-21 17:46:52 UTC (rev 18241)
+++ libmicrohttpd/ChangeLog     2011-11-21 17:52:44 UTC (rev 18242)
@@ -1,3 +1,8 @@
+Mon Nov 21 18:51:30 CET 2011
+       Added option to suppress generation of the 'Date:' header to be
+       used on embedded systems without RTC.  Documented the new option
+       and the configure options. -CG
+
 Sat Nov 19 20:08:40 CET 2011
        Releasing 0.9.17. -CG
 
@@ -10,7 +15,7 @@
        under certain (rare) circumstances. -CG
 
 Fri Nov  4 10:03:00 CET 2011
-       Small updates to the tutorial. 
+       Small updates to the tutorial.
        Releasing 0.9.16. -CG
 
 Thu Nov  3 10:14:59 CET 2011

Modified: libmicrohttpd/doc/microhttpd.texi
===================================================================
--- libmicrohttpd/doc/microhttpd.texi   2011-11-21 17:46:52 UTC (rev 18241)
+++ libmicrohttpd/doc/microhttpd.texi   2011-11-21 17:52:44 UTC (rev 18242)
@@ -190,6 +190,65 @@
 @c If you have other interesting examples, please let us know
 @end itemize
 
+
address@hidden Compiling GNU libmicrohttpd
address@hidden compilation
address@hidden embedded systems
address@hidden portability
+
address@hidden uses the standard GNU system where the usual build process
+involves running
address@hidden
+$ ./configure
+$ make
+$ make install
address@hidden verbatim
+
address@hidden supports various options to be given to configure to tailor the
+binary to a specific situation.  Note that some of these options will
+remove portions of the @mhd{} code that are required for
+binary-compatibility.  They should only be used on embedded systems
+with tight resource constraints and no concerns about library
+versioning.  Standard distributions including @mhd{} are expected to
+always ship with all features enabled, otherwise unexpected
+incompatibilities can arise!
+
+Here is a list of @mhd{}-specific options that can be given to configure
+(canonical configure options such as ``--prefix'' are also supported, for a
+full list of options run ``./configure --help''):
+
address@hidden 
address@hidden ``--disable-curl''
+disable running testcases using libcurl
+
address@hidden ``--disable-largefile'' 
+disable support for 64-bit files
+
address@hidden ``--disable-messages''
+disable logging of error messages (smaller binary size, not so much fun for 
debugging)
+
address@hidden ``--disable-https''
+disable HTTPS support, even if GNUtls is found; this option must be used if 
eCOS license is desired as an option (in all cases the resulting binary falls 
under a GNU LGPL-only license)
+
address@hidden ``--disable-postprocessor''
+do not include the post processor API (results in binary incompatibility)
+
address@hidden ``--disable-dauth''
+do not include the authentication APIs (results in binary incompatibility)
+
address@hidden ``--enable-coverage''
+set flags for analysis of code-coverage with gcc/gcov (results in slow, large 
binaries)
+
address@hidden ``--with-gcrypt=PATH''
+specifies path to libgcrypt installation
+
address@hidden ``--with-gnutls=PATH''
+specifies path to libgnutls installation
+
+
+ 
address@hidden table
+
 @section Including the microhttpd.h header
 @cindex portability
 @cindex microhttpd.h
@@ -256,6 +315,7 @@
 @cindex IAR
 @cindex ARM
 @cindex cortex m3
address@hidden embedded systems
 
 Some platforms do not support @code{long long}.  Hence MHD defines
 a macro @code{MHD_LONG_LONG} which will default to @code{long long}.
@@ -329,6 +389,15 @@
 @code{>= FD_SETSIZE}.  This option only works in conjunction with
 @code{MHD_USE_THREAD_PER_CONNECTION} (at this point).
 
address@hidden MHD_SUPPRESS_DATE_NO_CLOCK
address@hidden date
address@hidden clock
address@hidden embedded systems
+Suppress (automatically) adding the 'Date:' header to HTTP responses.
+This option should ONLY be used on systems that do not have a clock
+and that DO provide other mechanisms for cache control.  See also
+RFC 2616, section 14.18 (exception 3).
+
 @end table
 @end deftp
 
@@ -598,7 +667,10 @@
 
   
 @item MHD_OPTION_THREAD_STACK_SIZE
address@hidden stack, thread, pthread
address@hidden stack
address@hidden thread
address@hidden pthread
address@hidden embedded systems
 Maximum stack size for threads created by MHD.  This option must be
 followed by a @code{size_t}).  Not specifying this option or using
 a value of zero means using the system default (which is likely to 

Modified: libmicrohttpd/src/daemon/connection.c
===================================================================
--- libmicrohttpd/src/daemon/connection.c       2011-11-21 17:46:52 UTC (rev 
18241)
+++ libmicrohttpd/src/daemon/connection.c       2011-11-21 17:52:44 UTC (rev 
18242)
@@ -658,8 +658,9 @@
       /* estimate size */
       size = off + 2;           /* extra \r\n at the end */
       kind = MHD_HEADER_KIND;
-      if (NULL == MHD_get_response_header (connection->response,
-                                           MHD_HTTP_HEADER_DATE))
+      if ( (0 == (connection->daemon->options & MHD_SUPPRESS_DATE_NO_CLOCK)) 
&& 
+          (NULL == MHD_get_response_header (connection->response,
+                                            MHD_HTTP_HEADER_DATE)) 
         get_date_string (date);
       else
         date[0] = '\0';

Modified: libmicrohttpd/src/include/microhttpd.h
===================================================================
--- libmicrohttpd/src/include/microhttpd.h      2011-11-21 17:46:52 UTC (rev 
18241)
+++ libmicrohttpd/src/include/microhttpd.h      2011-11-21 17:52:44 UTC (rev 
18242)
@@ -106,7 +106,7 @@
 /**
  * Current version of the library.
  */
-#define MHD_VERSION 0x00091100
+#define MHD_VERSION 0x00091101
 
 /**
  * MHD-internal return code for "YES".
@@ -366,6 +366,15 @@
    * Use poll instead of select. This allows sockets with fd >= FD_SETSIZE.
    */
   MHD_USE_POLL = 64
+
+  /**
+   * Suppress (automatically) adding the 'Date:' header to HTTP responses.
+   * This option should ONLY be used on systems that do not have a clock
+   * and that DO provide other mechanisms for cache control.  See also
+   * RFC 2616, section 14.18 (exception 3).
+   */
+  MHD_SUPPRESS_DATE_NO_CLOCK = 128
+
 };
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]