gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14113 - in libmicrohttpd: . src/daemon


From: gnunet
Subject: [GNUnet-SVN] r14113 - in libmicrohttpd: . src/daemon
Date: Wed, 5 Jan 2011 15:22:01 +0100

Author: grothoff
Date: 2011-01-05 15:22:01 +0100 (Wed, 05 Jan 2011)
New Revision: 14113

Modified:
   libmicrohttpd/ChangeLog
   libmicrohttpd/src/daemon/connection.c
   libmicrohttpd/src/daemon/response.c
Log:
fix 1639

Modified: libmicrohttpd/ChangeLog
===================================================================
--- libmicrohttpd/ChangeLog     2011-01-05 12:15:08 UTC (rev 14112)
+++ libmicrohttpd/ChangeLog     2011-01-05 14:22:01 UTC (rev 14113)
@@ -1,3 +1,7 @@
+Wed Jan  5 15:20:11 CET 2011
+       Fixing double-locking on non-Linux platforms when using
+       MHD_create_response_from_fd (#1639). -CG
+
 Tue Jan  4 13:07:21 CET 2011
        Added MHD_create_response_from_buffer, deprecating
        MHD_create_response_from_data.  Deprecating
@@ -5,11 +9,11 @@
 
 Sun Dec 26 00:02:15 CET 2010
        Releasing libmicrohttpd 0.9.4. -CG
-       
+
 Sat Dec 25 21:57:14 CET 2010
        Adding support for basic authentication.
        Documented how to obtain client SSL certificates in tutorial. -MS
-       
+
 Thu Dec 23 15:40:36 CET 2010
        Increasing nonce length to 128 to support digest authentication
        with Opera (see #1633).

Modified: libmicrohttpd/src/daemon/connection.c
===================================================================
--- libmicrohttpd/src/daemon/connection.c       2011-01-05 12:15:08 UTC (rev 
14112)
+++ libmicrohttpd/src/daemon/connection.c       2011-01-05 14:22:01 UTC (rev 
14113)
@@ -310,6 +310,7 @@
   MHD_connection_close (connection, MHD_REQUEST_TERMINATED_WITH_ERROR);
 }
 
+
 /**
  * Prepare the response buffer of this connection for
  * sending.  Assumes that the response mutex is

Modified: libmicrohttpd/src/daemon/response.c
===================================================================
--- libmicrohttpd/src/daemon/response.c 2011-01-05 12:15:08 UTC (rev 14112)
+++ libmicrohttpd/src/daemon/response.c 2011-01-05 14:22:01 UTC (rev 14113)
@@ -270,13 +270,9 @@
 file_reader (void *cls, uint64_t pos, char *buf, size_t max)
 {
   struct MHD_Response *response = cls;
-  int ret;
 
-  pthread_mutex_lock (&response->mutex);
   (void) lseek (response->fd, pos + response->fd_off, SEEK_SET);
-  ret = read (response->fd, buf, max);
-  pthread_mutex_unlock (&response->mutex);
-  return ret;
+  return read (response->fd, buf, max);
 }
 
 




reply via email to

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