Commit Graph

620 Commits (f8d54c857426f112d133da0af9add8750b5f8db5)

Author SHA1 Message Date
Jan Kneschke 91f59d67b1 fixed scgi protocol handling and run first tests again pythonpaste
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@382 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 53c6ac0628 added a mod_scgi.c to implement SCGI for the python folks. This just
a skeleton and has to tested against a real SCGI server.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@381 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke e6a090656f disable adaptive spawning for now
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@380 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 533e8047c0 improve readability for error in request header error (fix #101)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@379 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 7bca57bb6b final fix for testcase and #177
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@378 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 5986add693 Quote ETag, fixes #117
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@376 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke c8652e52b0 fixed #148 and let PAM use the lighttpd-handle (if someone implements it)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@372 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 232e6158a9 Fixed segv if debuggin is enabled
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@371 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke d162ea1385 removed dead code, improved debug output and use + instead of % for the host-selection in CARP
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@370 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 8e67134b23 use size_t instead of unsigned int and char * instead of unsigned char *
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@369 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke c65f4e0223 make port 80 the default
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@368 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke e5a1b1eb4a make sure we mark the connection as SSL (important for redirects later)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@367 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke acfe706d73 Looks like the '+' -> ' ' transformation is only applied in the ?query part and not the rel-path.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@366 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke efa87f47c1 don't close the connection twice on HUP|IN
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@365 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke b527f569af added more debug info and fix hang after a local fcgi process has died
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@364 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 4335479051 handle ranges >2G correctly
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@363 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke bca076c9d0 added balancing and debugging info
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@361 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke dfe03995d7 Fix crash if qop is not set in the authorize response
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@360 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke b90f231042 handle range requests for >2Gb correctly
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@357 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 3eaaf78038 cleanup nicely
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@356 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke f88ca6b629 Clenaup environment before finishing the request
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@354 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke b5e848d5b4 - Added hash, round-robin balancers
- fixed return codes in two cases
- droped some endless loops
- FIXME: re-enabling of dead hosts is missing for now


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@350 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke e7def825a8 remove FDEVENT_OUT as soon as we hit _READ and only call joblist_append() if really needed
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@343 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 6b5c314cc6 added the name of the plugin if dlopen fails
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@342 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 279af9590f don't use accept-filtering if SSL is used
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@320 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke be5bb63b00 merged [166]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@318 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 3e61a898cb merged [238]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@292 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke a4f3a407bf set server-name to http_host if it is not set explicitly
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@291 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke d501b21f57 merged [281]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@285 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 3b5fffce48 merged partts of [192] and [194]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@283 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke ba06bde6d5 merged [274] and [239]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@278 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke 4f14ff8424 merge [109], [259], [266] and [267]
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@277 152afb58-edef-0310-8abb-c4023f1b3aa9
18 years ago
Jan Kneschke e1fb43d9dd fixed NULL dereference in logfile cycling if accesslog is not set
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@98 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 9d287563c6 added delayed connect() handling from mod_fastcgi
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@96 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 54bda6d388 get usefull error-msg on SSL_read + SSL_ERROR_SYSCALL
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@95 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 6b297b3341 ignore remove-close in freebsd sendfile()
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@90 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 9b59d5800f NAME_MAX needs sys/syslimits.h on cygwin
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@88 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 068152996b handle EPIPE in SSL_read as remote-close
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@85 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 2477686b50 added dir-listing.hide-dotfiles and customizable CSS for dirlisting written by smi
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@84 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 1956311750 check errno on SSL_ERROR_SYSCALL
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@83 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke af3ddde684 handle remote shutdown correctly
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@82 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke b68e4a2f2c strip double / on path-info
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@79 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 85194f365f fixed pathinfo handling on /fcgi_pattern
* added a new option broken-scriptfilename which should be 
  enabled for PHP if PATH_INFO is needed.
* droped path_info_offset and used PATH_INFO from response.c
  directly
* set PATH_TRANSLATED only if PATH_INFO is set
* always match the extension/prefix on uri.path



git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@78 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 829aeb9455 SIGCLD -> SIGCHLD (reported by s0 and Pierre-Yves)
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@77 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 9a5cf4a2ed fixed handling of dead fastcgi processes if deamonized
fixed handling of dead fastcgi process which sent their SIGCLD to
  initd and not to lighttpd. Moving the daemonize before starting
  the fastcgi procs fixes this.



git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@74 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 853b4f5b06 don't touch the exit-conditions for the loop directly (reverting a this part of one of the last changesets)
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@73 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 3caa67a131 added | to the non-rfc characters in URI
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@71 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 06c35abe4a updated ChangeLog and NEWS from timeline
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@70 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke bde657648d compile fixes for MIPSpro on IRIX
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@68 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 0cccf378c7 PACKAGE -> PACKAGE_NAME (by smi)
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@67 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 7725e92ff6 rewrote the event and error handling with the help of the fcgi-responder.c from the tests.
fixed #38 and other issues this way


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@63 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 2420fd96d2 added checks for the line-terminator handling and cleanup the configs
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@62 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 0f779ce2f9 fixed #25 by setting all duplicates to 400
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@60 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke a6dfdad19f disable dump_packet
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@59 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 6e83b23ec9 parse last-modified timestamp and compare it.
let's hope that strptime() works everywhere


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@58 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke c3662bebf1 'modification' as ignored and handled as 'access'
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@57 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 26b184ba6f this one belongs to the last changeset
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@55 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 75fae49e37 * If sizeof(long) == sizeof(off_t), buffer_{append,copy}_off_t()
are only macros to buffer_{append,copy}_long()
* ltostr() returns the string length instead of always 0
* Don't check return value of buffer_prepare_append(buffer *b), since
  it only returns -1 if b == NULL, which we do a few lines above anyway.
* Improved buffer_path_simplify(). No "dot_stack" required anymore.
  Operation can also be performed inplace.
* Check errno also against EACCES at pidfile-unlink for not logging
  a "Permission denied".


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@54 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke aa63120540 tolerate \n\n instead of \r\n\r\n and handle overlapping
EOL correctly


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@52 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 8b248ce3a5 moved SA_LEN macro to http-header-glue.c
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@50 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke d26f6893d9 moved external functions to *-glue.c
this simplifies the linkage on windows and macosx
which can't reference the binary for symbols


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@49 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 6a822b673e Don't use broken http_host pointer for debugging.
This circumvents a crash but is not a final fix
as the reason fo the crash hasn't been found yet.



git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@48 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 47ca38938d removed warnings about shadowed variables
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@47 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 0cc8a5c56c added ssl.ca-file and updated error-message if private and public key don't match
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@46 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 9ce460f051 forget a 's' of the format-string (Bug #31)
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@45 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke bc7f12ca71 replace inet_addr() by inet_aton() as the man-page on
linux recommends and as solaris likes for SunForte


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@39 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 44997909b1 fix segfault in log_error_write if host is empty
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@38 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke 91066a8b60 allow empty cgi.assign handler
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@35 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke a39b52810e added SERVER_ADDR, REMOTE_PORT to mod_fastcgi and mod_cgi and
REQUEST_URI to mod_cgi


git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@32 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago
Jan Kneschke bcdc6a3bbc moved everything below trunk/ and added branches/ and tags/
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@30 152afb58-edef-0310-8abb-c4023f1b3aa9
19 years ago