Browse Source

Remove plibc leftover, update ChangeLog and docs

Evgeny Grin (Karlson2k) 12 years ago
parent
commit
a9474fdab2
3 changed files with 11 additions and 17 deletions
  1. 7 0
      ChangeLog
  2. 3 10
      doc/libmicrohttpd.texi
  3. 1 7
      src/microhttpd/daemon.c

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+Tue Feb 18 19:46:45 CET 2014
+	Removed dependency on plibc for simpler compilation for W32.
+	Added configure option "--disable-pipes" to use socketpairs
+	instead of pipes for signalling to child threads. Pipes are 
+	always disabled on W32.
+	Some code refactoring. - EG
+
 Sat Feb  8 15:08:35 CET 2014
 	Corrected some uses of 'int' vs. 'size_t'. -EG/CG
 

+ 3 - 10
doc/libmicrohttpd.texi

@@ -359,16 +359,9 @@ for the specific platform.
 
 @section Portability to W32
 
-On W32, GNUnet requires PlibC, a lightweight library to provide some
-more POSIX-like calls on W32.  While PlibC takes care of most issues,
-it is unable to make @code{select} (or equivalent alternative socket
-calls) unblock when a socket is @code{shutdown}.  This can be
-problematic if MHD is used in ``one thread per connection'' mode.  In
-this case, an inactive TCP connection may block @code{MHD_stop_daemon}
-until the connection times out.  You may be able to mitigate the issue
-by setting a reasonably low timeout, but in general we of course
-recommend migrating away from Windows.  Using MHD with other types of
-event loops is unaffected by this issue.
+libmicrohttpd in general ported well to W32. Most libmicrohttpd features
+are supported. W32 do not support some functions, like epoll and 
+corresponding MHD features are not available on W32.
 
 
 @section Portability to z/OS

+ 1 - 7
src/microhttpd/daemon.c

@@ -3681,14 +3681,8 @@ MHD_start_daemon_va (unsigned int flags,
         goto thread_failed;
 #else
       sk_flags = 1;
-#if HAVE_PLIBC_FD
-      if (SOCKET_ERROR ==
-	  ioctlsocket (plibc_fd_get_handle (socket_fd), FIONBIO, &sk_flags))
+      if (SOCKET_ERROR == ioctlsocket (socket_fd, FIONBIO, &sk_flags))
         goto thread_failed;
-#else
-      if (ioctlsocket (socket_fd, FIONBIO, &sk_flags) == SOCKET_ERROR)
-        goto thread_failed;
-#endif // PLIBC_FD
 #endif // MINGW
 
       /* Allocate memory for pooled objects */