Commit Graph
698 Commits
Author SHA1 Message Date
Christian Grothoff 01541405d9 addressing odd URL format described by Daniel Chiaramello on the MHD mailinglist today 2011-09-27 11:13:04 +00:00
Christian Grothoff 7c9073a4c9 update 2011-09-26 19:24:42 +00:00
Christian Grothoff c36962f2c1 fix 2011-09-21 07:58:16 +00:00
Christian Grothoff 211920f3ef trying to fix Regis's problem 2011-09-19 12:06:46 +00:00
Christian Grothoff 9f7422a6f6 fixing 1766 2011-09-14 11:44:18 +00:00
Christian Grothoff aee7bbd414 for Regis (see ML) 2011-09-13 07:48:31 +00:00
Christian Grothoff a8541b843e release 0.9.14 2011-09-12 08:21:16 +00:00
Christian Grothoff 779abe3a66 indenting header more nicely, adding MHD_set_connection_option 2011-09-12 08:15:12 +00:00
Christian Grothoff 9877c2f9c6 use GNUTLS_SESSION instead of the un-implemented GNUTLS_CLIENT_CERT 2011-09-10 05:31:04 +00:00
Christian Grothoff 6136f0adf6 testcase 2011-09-09 13:21:25 +00:00
Christian Grothoff 764c0fd56b bugfix 2011-08-18 09:08:53 +00:00
Christian Grothoff 38608820bc use non-blocking sockets 2011-08-11 09:40:48 +00:00
Christian Grothoff 7d7574f1c2 logo 2011-07-25 14:13:51 +00:00
Christian Grothoff 0601a3bf71 fix nonce type 2011-07-16 20:43:02 +00:00
Christian Grothoff a6bfcb91f7 fix 2011-07-13 08:06:45 +00:00
Christian Grothoff 3a801de937 adding perf measurements 2011-07-07 08:25:55 +00:00
Christian Grothoff 172aac8234 fixing connection close issue mentioned by Robert Varga on MHD mailinglist 2011-06-22 12:33:32 +00:00
Christian Grothoff 46649e53fe improve performance by using shutdown on client sockets instead of poll/select on listen socket 2011-06-22 08:38:48 +00:00
Christian Grothoff a84334b18d docu 2011-06-22 08:28:49 +00:00
Christian Grothoff 901090b07b fixing race condition, minor leak, O(n) shutdown is now O(1) 2011-06-21 13:00:30 +00:00
Christian Grothoff 1975afb1ef fixing 1688 2011-06-11 11:15:53 +00:00
Christian Grothoff 3bfdf879ca new MHD_CONNECTION_INFO_DAEMON 2011-06-03 15:31:09 +00:00
Christian Grothoff 14e83908bb trying to fix timeout issue 2011-05-25 14:25:00 +00:00
Christian Grothoff f0fce31fbf releasing 0.9.11 2011-05-20 20:16:56 +00:00
Christian Grothoff abd339daa9 Fixing 1668 2011-05-20 20:12:57 +00:00
Christian Grothoff c60a0d6679 fixing Mantis 1680 2011-05-20 17:36:07 +00:00
Christian Grothoff e91e6d3a37 bugfix by hzm 2011-05-12 12:42:46 +00:00
Christian Grothoff ac3fe616d5 fixing 1679 2011-05-08 19:55:23 +00:00
Christian Grothoff 8515088370 mantis 1674 2011-04-08 09:49:41 +00:00
Christian Grothoff 73011c1020 fixing 1672 2011-04-03 12:04:38 +00:00
Christian Grothoff 15043c6d6c possible fix for 1670 2011-03-30 11:03:33 +00:00
Christian Grothoff 17461f1978 release 0.9.9 2011-03-29 12:22:48 +00:00
Christian Grothoff b41f753a6d fixes 2011-03-29 12:19:21 +00:00
Christian Grothoff a244273450 pollin issue 2011-03-23 22:30:47 +00:00
Christian Grothoff 2d15eceddf preliminary patch to poll race 2011-03-20 08:22:58 +00:00
Christian Grothoff 52cc71a8bc removing MSG_DONTWAIT as per discussion on ML 2011-03-18 12:34:34 +00:00
Christian Grothoff cd8920a28d libmicrohttpd] bug in MHD_create_response_from_fd_at_offset()
From: 
Eivind Sarto <ivan@espial.com>
  To: 
"libmicrohttpd@gnu.org" <libmicrohttpd@gnu.org>
  Date: 
Today 09:32:21 pm
   
  Spam Status: Spamassassin 0% probability of being spam.

Full report:
Probability=No, score=-2.6 required=7.0 tests=BAYES_00 autolearn=ham version=3.2.5-tuminfo_1  
There appears to be a bug in  MHD_create_response_from_fd_at_offset().
Calling this function with anything other than a zero offset will cause wrong data
or no data (sendfile fails if length < 0).

If you use this call with any application that uses ranges, this bug will trigger.

In src/daemon/daemon.c: send_param_adapter()
      .....
      /* can use sendfile */
      offset = (off_t) connection->response_write_position + connection->response->fd_off;
#ifdef BUGFIX
      /* correct */
      left = connection->response->total_size -  connection->response_write_position;
#else
      left = connection->response->total_size - offset;
#endif
      if (left > SSIZE_MAX)
        left = SSIZE_MAX; /* cap at return value limit */
      ret = sendfile (connection->socket_fd,
                      fd,
                      &offset,
                      left);


-eivind
2011-03-11 21:30:24 +00:00
Christian Grothoff 30f4e693ce fixing 1667 2011-03-05 21:03:21 +00:00
Christian Grothoff f7ae5a3412 adding API to handle #1661 (allow externally created connections) 2011-03-04 09:33:32 +00:00
Christian Grothoff 45a0a30893 also eliminating use of pipe, thereby addressing #1662 2011-03-04 09:10:03 +00:00
Christian Grothoff 8a5cf8f14f fixing 1666 2011-03-03 20:45:20 +00:00
Christian Grothoff 260dd93fda enable poll more broadly, fix timeout, use pipe instead of signal 2011-03-01 15:09:14 +00:00
Christian Grothoff 449bb33ca0 removing useless code 2011-02-23 13:23:20 +00:00
Christian Grothoff 18177698ac try to handle sendfile corner cases better 2011-02-18 10:05:26 +00:00
Christian Grothoff f1e95777a2 097 2011-02-13 10:31:51 +00:00
Christian Grothoff ae668d2eca fix gnutls error handling 2011-02-13 09:53:44 +00:00
Christian Grothoff 6abbeb5f40 mantis 1659 2011-02-11 09:16:23 +00:00
Christian Grothoff d251f28095 mantis 1652 2011-01-27 09:52:23 +00:00
Christian Grothoff 1d5bf289b4 mantis 1651 2011-01-27 09:49:34 +00:00
Christian Grothoff c7729110a0 release 2011-01-25 13:15:43 +00:00