Commit Graph

  • 0ee2c3b2bf Accept \n as line ending when parsing URL. Emil Mikulic 2011-01-19 01:11:43 +11:00
  • 97b7be4f79 Fix include path. Emil Mikulic 2011-01-19 00:48:59 +11:00
  • adb6b02603 Print more quotes. Emil Mikulic 2011-01-19 00:47:18 +11:00
  • b8bf9a0f72 Allow running of individual tests from cmdline. Emil Mikulic 2011-01-19 00:44:15 +11:00
  • d65990449e Make devel/test.py shorter. Emil Mikulic 2011-01-19 00:26:13 +11:00
  • da24c211d7 Make devel/test.py less repetitive. Emil Mikulic 2011-01-18 00:51:56 +11:00
  • 594e65d474 Add coverage driver. Emil Mikulic 2011-01-17 23:59:41 +11:00
  • c16f5c1007 More tests. Emil Mikulic 2011-01-17 23:59:33 +11:00
  • 8586258fbf Working on unit tests. Emil Mikulic 2011-01-17 23:44:02 +11:00
  • ffbc4c2b08 For developers: script to run through clang static analyzer. Emil Mikulic 2011-01-15 20:56:30 +11:00
  • dbe886b9d2 Another developer script - clang with warnings. Emil Mikulic 2011-01-15 20:54:15 +11:00
  • c42e5afec5 For developers - build with lots of warnings. Emil Mikulic 2011-01-15 20:51:07 +11:00
  • ccbe7cffa7 Don't qsort() NULL. Emil Mikulic 2011-01-15 20:38:31 +11:00
  • 1b7bbcc033 Fix clang nits. Emil Mikulic 2011-01-15 20:31:34 +11:00
  • 11bb4d8906 Use int over size_t. Emil Mikulic 2011-01-15 20:22:52 +11:00
  • 014ce0e988 Don't use init decls, they're C99. Emil Mikulic 2011-01-15 20:13:00 +11:00
  • f32ffbabd5 Finished style changes. Emil Mikulic 2011-01-15 20:12:12 +11:00
  • 7343ecf35f More style changes, fixed most of the compiler warnings. Emil Mikulic 2011-01-15 20:08:16 +11:00
  • 0442d41dab More style changes, move a function. Emil Mikulic 2011-01-15 19:36:09 +11:00
  • 775cd3ad9b Mostly style changes. Emil Mikulic 2011-01-15 19:17:03 +11:00
  • 1fa02dc545 Restyle and add printflike. Emil Mikulic 2011-01-15 18:37:15 +11:00
  • 8d11e14d11 Bump copyright year. Emil Mikulic 2011-01-15 18:16:12 +11:00
  • 8393796097 More inttype tweaks. Emil Mikulic 2011-01-15 18:15:39 +11:00
  • bc692bb5f7 Casts and indents. Emil Mikulic 2011-01-15 16:20:09 +11:00
  • 7c65160849 Cosmetics. Emil Mikulic 2011-01-15 16:16:22 +11:00
  • ec246e2a51 Avoid infinite loop (and quiet gcc warning) Emil Mikulic 2011-01-15 16:06:31 +11:00
  • 803655dba9 Ranges work now. Emil Mikulic 2010-11-25 01:49:23 +11:00
  • 41f4ec2d50 Should these be unsigned? Emil Mikulic 2010-11-25 01:44:46 +11:00
  • 3cc77c31d6 More longlong fixes. Emil Mikulic 2010-11-25 01:43:51 +11:00
  • 63bdabd79f Working on large file support. Emil Mikulic 2010-11-25 01:37:37 +11:00
  • 1cd7fd3cda Tidy up Makefile. Emil Mikulic 2010-11-24 23:33:31 +11:00
  • 0ab76c953b Move trunk/ into base dir, move tests into devel/. Emil Mikulic 2013-04-28 20:29:15 +10:00
  • 7c4a9ffade [ darkhttpd-1.7 release ] Emil Mikulic 2008-11-01 14:47:33 +00:00
  • 45912c373b Fix off-by-one. Emil Mikulic 2008-11-04 08:53:22 +00:00
  • 8eec408691 Don't use strlen() in urlencode_filename() Emil Mikulic 2008-10-26 12:53:34 +00:00
  • ca6a07f714 is_bad_char -> needs_urlencoding, whitespace fixes. Emil Mikulic 2008-10-26 12:50:28 +00:00
  • b02c1bba08 urlencode file names when generating directory listing. Emil Mikulic 2008-10-26 12:45:57 +00:00
  • 3e2e53a33e [ darkhttpd-1.6 release ] Emil Mikulic 2008-08-02 04:00:56 +00:00
  • b70dcdfab6 Ubuntu hides uname somewhere else. Don't use a full path. Emil Mikulic 2008-08-02 03:59:02 +00:00
  • 820b5c2e3b Five-letter patch that fixes a use-after-free and possible list corruption. Don't know how far back this bug goes. Caught and diagnosed on an Ubuntu system where it manifested as a segfault. Emil Mikulic 2008-08-02 03:51:11 +00:00
  • f5c051aad5 [ darkhttpd-1.5 release ] Emil Mikulic 2006-12-14 10:13:55 +00:00
  • 1a161a47ce Simplify the Makefile. Emil Mikulic 2006-12-14 10:10:46 +00:00
  • 4cddcf96a5 Not sure if we were taking the size of the right thing previously. Zero out the sockaddr_in before having accept() write to it. This un-confuses bcheck on Solaris, at least. Emil Mikulic 2006-12-14 10:08:34 +00:00
  • 0819e7c3c6 Revert - don't bother with tzset. Emil Mikulic 2006-12-14 10:05:06 +00:00
  • cfcbdf0ad7 Stuff to do when I find the time. Emil Mikulic 2006-12-13 14:00:24 +00:00
  • 6690b3c7cf If sendfile blocks and sends zero bytes, treat it as blocking and not end-of-file. This is a really rare corner case. Emil Mikulic 2006-12-13 13:55:48 +00:00
  • c23550f165 Cache time and update it once per event loop iteration. Emil Mikulic 2006-12-13 13:38:50 +00:00
  • 400ee17051 Slightly re-arrange the way recycling of keep-alive connections is handled. Unfortunately, I'm still seeing horrible performance. Emil Mikulic 2006-12-13 13:32:22 +00:00
  • 29cbe09d4c Minor tweaks. Emil Mikulic 2006-12-13 13:28:32 +00:00
  • 3e96ddf6d6 Implement disabling TCP_NODELAY, but comment it out. Emil Mikulic 2006-12-13 13:28:10 +00:00
  • 008f6f5d4e We can handle a request from accept() to close() without having to go through a single iteration of the select() loop. Emil Mikulic 2006-12-13 13:07:10 +00:00
  • 5ab0496a9b Call tzset() during initialization. Emil Mikulic 2006-12-13 13:01:41 +00:00
  • 3ed2762831 Another state transition optimization: Go from send_header straight to send_reply. Emil Mikulic 2006-12-13 12:57:30 +00:00
  • 844dcc6b9d Another state transition optimization due to NBIO: Go from recv_request to send_header without visiting select() Emil Mikulic 2006-12-13 12:47:20 +00:00
  • ba91f1cdb3 After accepting a connection, attempt a read straight away instead of going through an iteration of the select() loop. Emil Mikulic 2006-12-13 12:41:08 +00:00
  • f3ce5d1eb9 Don't just SETFL O_NONBLOCK, first GETFL. Emil Mikulic 2006-12-13 12:31:30 +00:00
  • b86889f027 %Z gives UTC. Apache uses GMT instead, and wget complains about an invalid header when it sees UTC, so switch. Emil Mikulic 2006-12-13 11:53:13 +00:00
  • 14d0ca9ac7 Get the constness right. Emil Mikulic 2006-12-13 08:41:05 +00:00
  • 625dc5e473 - In decode_url() - Use '\0' instead of 0 to hint that it's in a character context. - Don't realloc - this wastes more time than it saves memory. - Don't forget to free decoded url if it's found to be unsafe! Emil Mikulic 2006-12-13 08:38:18 +00:00
  • ccea5116b5 Restore a check I shouldn't have removed. We now pass all our tests again. Emil Mikulic 2006-12-13 08:32:10 +00:00
  • 4b90b875c6 Adapt make_safe_uri() to work in-place. We're currently failing some tests. Emil Mikulic 2006-12-13 08:30:21 +00:00
  • 97ce3cb5d0 Turn up the debugging and warnflags. Emil Mikulic 2006-12-13 08:29:53 +00:00
  • dc63087421 Test for consolidate_slashes() too. Emil Mikulic 2006-12-13 08:17:56 +00:00
  • d7707a9216 Remember to free memory. Emil Mikulic 2006-12-13 08:16:16 +00:00
  • a0afb2cc8b Add tests for make_safe_uri. Emil Mikulic 2006-12-13 08:14:27 +00:00
  • e6c8b820fd Rename warnflags to debug-build and add debugging and torture defines. Emil Mikulic 2006-12-13 07:46:46 +00:00
  • 6d24c697b1 Request a bigger file -> more testing. Emil Mikulic 2006-12-13 07:46:26 +00:00
  • af7d21c31e Torture test: send and recv one byte at a time to make sure darkhttpd's buffering is up to scratch. Emil Mikulic 2006-12-13 07:35:52 +00:00
  • ab1204f700 Implement (optional, compile-time) shrinking of send buffer for torture tests. Emil Mikulic 2006-12-13 07:35:29 +00:00
  • 94d3403c2e Remove the pidfile_path assertion entirely. Emil Mikulic 2006-12-13 07:23:55 +00:00
  • b307616f3d Fix some GCC warnings. Emil Mikulic 2006-12-13 07:16:38 +00:00
  • de03d20958 Need some release engineering reminders after I failed to update the pkgname when I released v1.4. Emil Mikulic 2006-12-13 07:15:32 +00:00
  • 4a405e36b1 Walking through the code - correct some comment typos. Emil Mikulic 2006-12-13 07:09:10 +00:00
  • c2ff18a157 [ darkhttpd-1.4 release ] Emil Mikulic 2006-09-04 07:04:39 +00:00
  • c9947250f2 [ darkhttpd-1.3 release ] Emil Mikulic 2006-07-21 09:33:55 +00:00
  • 868c1ed1da Don't need libutil anymore. Emil Mikulic 2006-07-21 09:33:10 +00:00
  • 572eed9e3a Add example of --dameon and --pidfile to README. Emil Mikulic 2006-07-21 09:24:47 +00:00
  • 953a93d2fc Import pidfile helpers and cut them down to just the pieces we need. Emil Mikulic 2006-07-21 09:17:34 +00:00
  • c3166bf1d0 Implement warn() Emil Mikulic 2006-07-21 08:43:09 +00:00
  • 2d4fbd38cd Implement daemonize. Emil Mikulic 2006-07-21 08:39:01 +00:00
  • cad637254a Add mimetypes, sort them, remove lots of whitespace from the middle. Emil Mikulic 2006-07-21 08:16:30 +00:00
  • ff152e87ef Update copyright years. Emil Mikulic 2006-07-21 07:26:13 +00:00
  • 25eea59af9 We need libutil on BSD now. Emil Mikulic 2006-07-21 07:17:24 +00:00
  • 258d54ed8c You don't "usually" need root privs for chroot(), you always do. Emil Mikulic 2006-07-21 07:17:04 +00:00
  • 4fed6d0665 Implement --pidfile and move clean shutdown into main() Emil Mikulic 2006-07-21 07:14:22 +00:00
  • 42833fb312 Fix build on FreeBSD by spelling "sockin" correctly. This has been outstanding for a long time. Emil Mikulic 2006-07-21 07:13:21 +00:00
  • 6c1922391f Answer requests that end in \n\n as well as the more pedantic \r\n\r\n Emil Mikulic 2006-07-21 07:12:46 +00:00
  • bea398d629 Add support for sendfile() on Solaris. Emil Mikulic 2006-07-21 07:11:56 +00:00
  • 49fb5f3fbf Fix fallback on platforms that don't have sendfile() It was quite badly broken. Emil Mikulic 2006-07-21 07:11:08 +00:00
  • 2ca3cef4a3 [ darkhttpd-1.2 release ] Emil Mikulic 2004-12-27 12:54:54 +00:00
  • 666d9b3355 Instructions, not prompts. Emil Mikulic 2004-12-27 12:49:08 +00:00
  • 3829ceade8 Fix (unsigned < 0) comparison. Emil Mikulic 2004-12-27 12:48:24 +00:00
  • 74fcaf5859 safefree -> free Emil Mikulic 2004-12-27 12:47:39 +00:00
  • dfe896357a Fix debugf mess. Emil Mikulic 2004-12-27 12:46:35 +00:00
  • b50b4f1c5a Fix signed-unsigned comparison. Emil Mikulic 2004-12-27 12:40:43 +00:00
  • 5cf2862f08 Manually inline acceptfilter code to remove unused arg warning on non-FreeBSD platforms. Emil Mikulic 2004-12-27 12:38:32 +00:00
  • e624dbbe02 Fix err and debugf warnings. Emil Mikulic 2004-12-27 12:30:36 +00:00
  • 91fcb80e4a Adjust copyright and license. Emil Mikulic 2004-12-27 12:28:46 +00:00
  • d545127600 Track requests and bytes transferred statistics. Emil Mikulic 2003-12-14 08:29:08 +00:00
  • c4f78a124c [ darkhttpd-1.1 release ] Emil Mikulic 2003-12-13 14:19:06 +00:00