diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-12 21:51:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-12 21:51:47 +0000 |
commit | 9569a609edc067b018be8182424e54de41df2fdc (patch) | |
tree | 95753a63f4cd9b71b87995d554e1632583e4284c /doc | |
parent | 40f884cbb9c51975c1ea4a655c8c1813376ff788 (diff) | |
download | libmicrohttpd-9569a609edc067b018be8182424e54de41df2fdc.tar.gz libmicrohttpd-9569a609edc067b018be8182424e54de41df2fdc.zip |
-document select/shutdown issue on W32, move z/os documentation into manual
Diffstat (limited to 'doc')
-rw-r--r-- | doc/libmicrohttpd.texi | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi index 30e0355d..3c5664c5 100644 --- a/doc/libmicrohttpd.texi +++ b/doc/libmicrohttpd.texi | |||
@@ -13,7 +13,7 @@ This manual is for GNU libmicrohttpd | |||
13 | (version @value{VERSION}, @value{UPDATED}), a library for embedding | 13 | (version @value{VERSION}, @value{UPDATED}), a library for embedding |
14 | an HTTP(S) server into C applications. | 14 | an HTTP(S) server into C applications. |
15 | 15 | ||
16 | Copyright @copyright{} 2007--2012 Christian Grothoff | 16 | Copyright @copyright{} 2007--2013 Christian Grothoff |
17 | 17 | ||
18 | @quotation | 18 | @quotation |
19 | Permission is granted to copy, distribute and/or modify this document | 19 | Permission is granted to copy, distribute and/or modify this document |
@@ -267,9 +267,9 @@ specifies path to libgcrypt installation | |||
267 | specifies path to libgnutls installation | 267 | specifies path to libgnutls installation |
268 | 268 | ||
269 | 269 | ||
270 | |||
271 | @end table | 270 | @end table |
272 | 271 | ||
272 | |||
273 | @section Including the microhttpd.h header | 273 | @section Including the microhttpd.h header |
274 | @cindex portability | 274 | @cindex portability |
275 | @cindex microhttpd.h | 275 | @cindex microhttpd.h |
@@ -358,6 +358,40 @@ to define both in "platform.h" if you need to change the definition | |||
358 | for the specific platform. | 358 | for the specific platform. |
359 | 359 | ||
360 | 360 | ||
361 | @section Portability to W32 | ||
362 | |||
363 | On W32, GNUnet requires PlibC, a lightweight library to provide some | ||
364 | more POSIX-like calls on W32. While PlibC takes care of most issues, | ||
365 | it is unable to make @code{select} (or equivalent alternative socket | ||
366 | calls) unblock when a socket is @code{shutdown}. This can be | ||
367 | problematic if MHD is used in ``one thread per connection'' mode. In | ||
368 | this case, an inactive TCP connection may block @code{MHD_stop_daemon} | ||
369 | until the connection times out. You may be able to mitigate the issue | ||
370 | by setting a reasonably low timeout, but in general we of course | ||
371 | recommend migrating away from Windows. Using MHD with other types of | ||
372 | event loops is unaffected by this issue. | ||
373 | |||
374 | |||
375 | @section Portability to z/OS | ||
376 | |||
377 | To compile MHD on z/OS, extract the archive and run | ||
378 | |||
379 | @verbatim | ||
380 | iconv -f UTF-8 -t IBM-1047 contrib/ascebc > /tmp/ascebc.sh | ||
381 | chmod +x /tmp/ascebc.sh | ||
382 | for n in `find * -type f` | ||
383 | do | ||
384 | /tmp/ascebc.sh $n | ||
385 | done | ||
386 | @end verbatim | ||
387 | to convert all source files to EBCDIC. Note that you must run | ||
388 | @code{configure} from the directory where the configure script is | ||
389 | located. Otherwise, configure will fail to find the | ||
390 | @code{contrib/xcc} script (which is a wrapper around the z/OS c89 | ||
391 | compiler). | ||
392 | |||
393 | |||
394 | |||
361 | @c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | 395 | @c ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
362 | 396 | ||
363 | @c ------------------------------------------------------------ | 397 | @c ------------------------------------------------------------ |