Commit Graph
4924 Commits
Author SHA1 Message Date
Nils Durner 1b0b8c014d use untranslated file input mode, important on Windows 2010-01-20 21:07:20 +00:00
Christian Grothoff 8893ec6980 removing unused variable 2010-01-18 07:58:14 +00:00
Nils Durner 03b1320c5d increase default connection limit on Windows 2010-01-17 22:37:54 +00:00
Nils Durner a879c0bb77 check for -1 2010-01-17 22:35:07 +00:00
Nils Durner 78e52ce15e don't use the first slash for paths 2010-01-17 22:15:23 +00:00
Nils Durner adf73d5456 Fix hang on Windows by removing the call to MHD_gc_pseudo_random() which is, according to the comment, there to initialize the PRNG. The latter gets already initialized via "gcry_control (GCRYCTL_INITIALIZATION_FINISHED", so there's really no point in asking for a single random byte here. No feedback from jas@gnutls, though. 2010-01-17 13:11:14 +00:00
Christian Grothoff b4d4fb361f code clean up 2010-01-05 15:42:19 +00:00
lv-426 acfe67b353 fix tls_authentication_test failure due to expired SSL certificates 2010-01-05 01:20:22 +00:00
Christian Grothoff 4d1ae2b8a6 indent 2009-12-23 18:41:13 +00:00
Nils Durner 744e4d4ba0 Don't depend on poll.h 2009-12-17 19:29:17 +00:00
Nils Durner 1237879c31 gcrypt 1.2.2 is sufficient 2009-12-17 16:53:36 +00:00
Christian Grothoff 1fe1f869d8 check this too 2009-12-05 20:09:10 +00:00
Christian Grothoff 730f662888 impossible, keep code minimal 2009-12-05 20:07:24 +00:00
Christian Grothoff 1f30b19f99 docu 2009-12-04 12:18:07 +00:00
Christian Grothoff bf1d64a78d adding MHD_OPTION_ARRAY 2009-12-04 12:17:07 +00:00
Christian Grothoff 4856b2cf00 docu 2009-11-16 13:42:08 +00:00
Christian Grothoff 60f8fbba5b better, use time_t 2009-11-16 13:41:07 +00:00
Christian Grothoff db0b0e4208 better, and check against overflow 2009-11-16 13:40:10 +00:00
Christian Grothoff 735bf2d2aa fix 2009-11-16 13:39:11 +00:00
Christian Grothoff 5335e4afd7 fixing 1512 2009-11-16 13:34:35 +00:00
Christian Grothoff a223b92977 additional testcase 2009-11-16 13:34:25 +00:00
Christian Grothoff 8be5df1d5d disabling broken testcase 2009-11-15 11:46:33 +00:00
Christian Grothoff 1e761698d8 ignore generated files 2009-11-15 11:34:55 +00:00
Christian Grothoff 7f1881553f call init/deinit earlier 2009-11-13 14:54:47 +00:00
Christian Grothoff e762e3cdcc be less verbose 2009-11-13 14:54:35 +00:00
Christian Grothoff 3a6cb5ed47 fix compile errors 2009-11-13 12:22:38 +00:00
Christian Grothoff 2fc721ec0c fix warning 2009-11-13 12:18:54 +00:00
Christian Grothoff 812556d730 fix types 2009-11-13 12:15:25 +00:00
Christian Grothoff 138a5f55c0 fix type 2009-11-13 12:14:04 +00:00
Christian Grothoff 425660b2e0 check return code 2009-11-13 12:12:35 +00:00
Christian Grothoff ec72716265 check return code 2009-11-13 12:12:29 +00:00
Christian Grothoff 0ae441aa76 end tag 2009-11-13 12:05:52 +00:00
Christian Grothoff c3b093d70a cleaning up and documenting panic callback 2009-11-12 15:27:11 +00:00
Christian Grothoff a952ad938c [libmicrohttpd] large file descriptors
From: 
John Muth <muth@parascale.com>
  To: 
libmicrohttpd@gnu.org
  Date: 
Yesterday 18:35:25

Hi Christian,

We are using libmicro http in our application. Our application runs on Linux
and uses a large number of file descriptors (> 1024). Unfortunately the
Linux fdset's only have room for 1024 fd's.

I made changes to the 0.4.4 source to support poll instead of select so we
could get around the file descriptor issue. I've attached the diffs if you
are interested.

-John Muth
Parascale
2009-11-11 11:55:34 +00:00
Christian Grothoff 90d6f46095 From:
Jon Nalley <lists@bluebot.org>
  To: 
libmicrohttpd development and user mailinglist <libmicrohttpd@gnu.org>
  Date: 
Today 11:34:10 am
   
Hi,

I believe I may have found a small bug in postprocessor.c.

--- begin excerpt @ line 266 postprocessor.c ---
if (0 != strncasecmp (MHD_HTTP_POST_ENCODING_FORM_URLENCODED, encoding,
                       strlen (MHD_HTTP_POST_ENCODING_MULTIPART_FORMDATA)))
--- end excerpt ---

Shouldn't it be strlen(MHD_HTTP_POST_ENCODING_FORM_URLENCODED) ???

Regards,

Jon Nalley
2009-11-08 12:03:30 +00:00
Nils Durner d1d418824d GNU 2009-11-07 19:23:43 +00:00
Nils Durner c2e56cafe8 MHD_set_panic_func 2009-11-07 19:23:09 +00:00
Nils Durner fb582792db FD_SETSIZE is not the upper bound for fd numbers on Windows 2009-11-04 23:52:46 +00:00
Nils Durner 3bf01f3a76 FD_SETSIZE is not the upper bound for fd numbers on Windows 2009-11-04 22:40:15 +00:00
Christian Grothoff 09690d8896 From:
Eric Sesterhenn <eric.sesterhenn@lsexperts.de>
  To: 
christian@grothoff.org
  Date: 
Today 13:07:40
  Attachments: 
 libmicro.diff
   
  Spam Status: Spamassassin 0% probability of being spam.

Full report:
No, score=-2.6 required=7.0 tests=BAYES_00 autolearn=ham version=3.2.5-tuminfo_1  
hi,

attached patch fixes two leaks of retVal in error paths found by cppcheck.

Regards, Eric
2009-10-29 12:34:02 +00:00
Christian Grothoff ba9c5760a5 releasing 0.4.4 2009-10-28 19:46:30 +00:00
Christian Grothoff 41d87442e6 Trying to fix the issue reported on the mailinglist at
http://lists.gnu.org/archive/html/libmicrohttpd/2009-10/msg00013.html
2009-10-14 12:39:50 +00:00
Christian Grothoff 1c56a76721 From:
Mike Crowe <mac@mcrowe.com>
  To: 
  libmicrohttpd@gnu.org
    Date: 
    Yesterday 17:41:12
       
	 I've found a difficult to reproduce deadlock in v0.4.2 when calling
	 MHD_stop_daemon while a connection is active. I narrowed it down to
	 MHD_handle_connection racing against MHD_cleanup_connections. It can
	 be reproduced much more easily by inserting a sleep just before the
	 call to SELECT in MHD_handle_connection. I'm using
	 MHD_USE_THREAD_PER_CONNECTION.

	 The problem appears to occur when MHD_stop_daemon sets
	 daemon->shutdown and sends SIGALRM signal to the thread running inside
	 MHD_handle_connection while it is between the top of the loop where
	 con->daemon->shutdown is checked and the call to SELECT. The signal
	 has no persistent effect and the thread ends up blocked forever inside
	 select.

	 The only workarounds I can come up with are using an explicit pipe to
	 wake the thread (which is stateful so it can be relied upon to wake
	 the select) or to force the socket closed so that the select wakes up
	 (but this sounds rather more dangerous and is racey if anyone else is
	 opening file descriptors.)

	 Here's a patch which reproduces the problem under 'make check'. I'm
	 running on Debian GNU/Linux 5.0 on amd64 but I've also reproduced the
	 problem on i386.

	 I can clean up the patch to make it suitable for checking in but the
	 chances of hitting the problem without the sleep in
	 MHD_handle_connection are very small.
2009-10-14 12:26:42 +00:00
Christian Grothoff 88dde21213 From:
Mike Crowe <mac@mcrowe.com>
  To: 
  libmicrohttpd@gnu.org
    Date: 
    Yesterday 16:48:20
       
I've looked at the fix in SVN. Unfortunately pthread_join returns an
error rather than setting errno. :( This caused me confusion recently
too.

Here's a patch that fixes this. It passed 'make check' modulo the curl
error 66 put failures that seem to happen for me regardless:
2009-10-14 12:14:14 +00:00
Christian Grothoff e25969a865 fix 2009-10-14 12:10:50 +00:00
Christian Grothoff 2b656f23da updating docs 2009-10-11 13:25:48 +00:00
Christian Grothoff 9da66fe9cd dual licensing 2009-10-11 13:01:59 +00:00
Christian Grothoff f091305be8 forgot 2009-10-11 09:32:19 +00:00
Christian Grothoff f6f79e051a Dear Christian Grothoff
Thanks for libmicrohttpd! It's really useful for writing unit tests
for http clients and code interacting with http servers.

I mostly write code for Symbian, so I ported the library to Symbian
OS. You can see the patch at http://codereview.appspot.com/130056/show
. I'm not sure if you agree with how the changes have been structured,
but hopefully we can work towards a version that can be integrated.
Note that Symbian doesn't have autoconf and only a partial C library.

Best regards,

   Mika Raento
2009-10-11 09:31:57 +00:00
Christian Grothoff 17cfe87706 fixing the fix 2009-10-10 11:42:02 +00:00