diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-22 08:28:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-22 08:28:49 +0000 |
commit | a84334b18d15984b881f8eace7149c5ee9581837 (patch) | |
tree | 1ad5be6d7b73e0dca067e4c7a3acd1f8cf8a482b | |
parent | 21bf15d021e2215c337141ec18c121b983687d46 (diff) | |
download | libmicrohttpd-a84334b18d15984b881f8eace7149c5ee9581837.tar.gz libmicrohttpd-a84334b18d15984b881f8eace7149c5ee9581837.zip |
docu
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | doc/microhttpd.texi | 7 | ||||
-rw-r--r-- | src/include/microhttpd.h | 9 |
3 files changed, 16 insertions, 5 deletions
@@ -1,3 +1,8 @@ | |||
1 | Wed Jun 22 10:25:13 CEST 2011 | ||
2 | Eliminate unnecessary (and badly synchronized) calls to | ||
3 | MHD_get_timeout in MHD_USE_THREAD_PER_CONNECTION mode. | ||
4 | Document that this is not acceptable. -CG | ||
5 | |||
1 | Tue Jun 21 13:54:59 CEST 2011 | 6 | Tue Jun 21 13:54:59 CEST 2011 |
2 | Fixing tiny memory leak in SSL code from 'gnutls_priority_init'. | 7 | Fixing tiny memory leak in SSL code from 'gnutls_priority_init'. |
3 | Fixing data race between code doing connection shutdown and | 8 | Fixing data race between code doing connection shutdown and |
diff --git a/doc/microhttpd.texi b/doc/microhttpd.texi index a4aab191..f7a90cea 100644 --- a/doc/microhttpd.texi +++ b/doc/microhttpd.texi | |||
@@ -1165,7 +1165,12 @@ the right options for this call. | |||
1165 | Obtain timeout value for select for this daemon (only needed if | 1165 | Obtain timeout value for select for this daemon (only needed if |
1166 | connection timeout is used). The returned value is how long | 1166 | connection timeout is used). The returned value is how long |
1167 | @cfunction{select} should at most block, not the timeout value set for | 1167 | @cfunction{select} should at most block, not the timeout value set for |
1168 | connections. | 1168 | connections. This function must not be called if the |
1169 | @code{MHD_USE_THREAD_PER_CONNECTION} mode is in use (since then it | ||
1170 | is not meaningful to ask for a timeout, after all, there is | ||
1171 | concurrenct activity). The function must also not be called by | ||
1172 | user-code if @code{MHD_USE_INTERNAL_SELECT} is in use. In the latter | ||
1173 | case, the behavior is undefined. | ||
1169 | 1174 | ||
1170 | @table @var | 1175 | @table @var |
1171 | @cindex timeout | 1176 | @cindex timeout |
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 27d3d40b..6ee66237 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -1083,10 +1083,11 @@ MHD_get_fdset (struct MHD_Daemon *daemon, | |||
1083 | fd_set * write_fd_set, fd_set * except_fd_set, int *max_fd); | 1083 | fd_set * write_fd_set, fd_set * except_fd_set, int *max_fd); |
1084 | 1084 | ||
1085 | /** | 1085 | /** |
1086 | * Obtain timeout value for select for this daemon | 1086 | * Obtain timeout value for select for this daemon (only needed if |
1087 | * (only needed if connection timeout is used). The | 1087 | * connection timeout is used). The returned value is how long select |
1088 | * returned value is how long select should at most | 1088 | * should at most block, not the timeout value set for connections. |
1089 | * block, not the timeout value set for connections. | 1089 | * This function MUST NOT be called if MHD is running with |
1090 | * "MHD_USE_THREAD_PER_CONNECTION". | ||
1090 | * | 1091 | * |
1091 | * @param daemon daemon to query for timeout | 1092 | * @param daemon daemon to query for timeout |
1092 | * @param timeout set to the timeout (in milliseconds) | 1093 | * @param timeout set to the timeout (in milliseconds) |