2
0
Fork 0
Commit Graph

85 Commits (54d7b4677482942b0084bbb8c9bd91faf0798e97)

Author SHA1 Message Date
Stefan Bühler b41e02860c [mod_proxy] fall back to waiting for connection close if no message length indicator is found in HTTP/1.1 response
It seems this is actually allowed by the RFCs; although it is intended
as HTTP/1.0 backward compatibility, and HTTP/1.1 servers (backends)
really should do better.

Change-Id: I93265bfe7fae57beb10d70d3a4596c5cae7b51bd
2021-07-18 12:08:52 +02:00
Stefan Bühler b033a4fcb4 [test] enable TestRedirectDirWithQueryAndSpecialChars
Change-Id: Ic649c1e4ea158853c362836f31f6ec7e250413cd
2021-05-03 23:26:51 +02:00
Stefan Bühler c8bf635551 [tests] fix memcached and scgi-envcheck for python3; use asyncio
Change-Id: If3be7d98701d90c0374f625d1571140a100009df
2021-02-28 16:24:14 +01:00
Stefan Bühler a5d3e11c1f [tests] add tests for mod_dirlist
Change-Id: I5d6ea970cd5dca7e202c8bd888142e44ef8f4211
2020-06-22 20:38:47 +02:00
Stefan Bühler 92681fcde4 [tests] fix PrepareDir
Change-Id: Idb26de002ad1586101c9e9bdb0256170b8e287b9
2020-06-22 19:59:43 +02:00
Stefan Bühler afaf285bfb [core] fix chunk decoding bug: reused stale context after forwarding chunk data
Change-Id: Ie37e3c2d605ae23dcb7a6b74ff6b5f0699074ac5
2019-08-26 00:36:59 +02:00
Stefan Bühler d8bd405a19 [core] fix crash when HTTP backend "Upgrade"s
Change-Id: If7143f49baa2efa8d1fb3f78c6390969730c678e
2019-08-25 13:07:49 +02:00
Stefan Bühler d167e6e416 [core/mod_proxy] support http backends trying to run keep-alive
Even if they shouldn't (due to HTTP/1.0 or Connection; close) some
backends send HTTP/1.1 without Connection: close, and use Content-Length
to signal end of response (and don't close the connection, as they wait
for another request).

Now Content-Length is used to find the end of the response (chunked
transfer-encoding was already supported).

mod_proxy now signals HTTP/1.1, but also sends "Connection: close": it
doesn't reuse the connection yet.

Change-Id: Ica0c9b3b7da79899412a746f21e7348ccd3d23ee
2019-08-25 11:45:18 +02:00
Stefan Bühler 16ccf1d307 [tests] show error log of failed tests
Change-Id: Iaee7559a0526cdb4a8d337d003a79062ff912dce
2019-08-25 11:45:18 +02:00
Stefan Bühler f60b53bd44 [tests] build custom http backend server, require python3 for socketserver
Change-Id: Id4deaad74799a8cc2454869e941e7a00106d25cd
2019-08-25 01:22:55 +02:00
Stefan Bühler 9263deaeef [tests] python3 compability
Change-Id: I09c8eaf0cbe4a74b795aeb2a3b04f0abc39383c8
2019-08-24 23:35:45 +02:00
Stefan Bühler 93d04a3514 [tests] use gnutls certtool to create test ca
also supports generating ecc (ecdsa) keys and selecting a hash

Change-Id: Iafa6557a4f0a97885a3300861b842289b73ea1de
2014-11-09 11:26:15 +01:00
Stefan Bühler 72011fbede [mox_rewrite,mod_proxy,docs] fix request.raw_path handling (includes query-string) 2014-06-06 13:41:30 +02:00
Stefan Bühler b5eac15433 [mod_proxy] use raw_path instead of re-encoded path 2014-06-06 12:08:16 +02:00
Stefan Bühler 6e2ca4b80c [tests] small cleanups: use req_header.overwrite, no_docroot option 2014-06-06 11:57:41 +02:00
Stefan Bühler 76c12e4077 [mod_rewrite] rewrite_raw result gets decoded 2014-06-06 11:43:40 +02:00
Stefan Bühler 47c1cf1c20 [tests] increase timeout for https requests 2014-05-22 18:31:33 +02:00
Stefan Bühler 55042a89a9 [tests] add a 0.2 second sleep before testing memcache lookup after store 2014-05-22 13:02:25 +02:00
Stefan Bühler 074f53744a [angel] merge allow_listen_* items
* allow_listen_ip ".." -> allow_listen ".."
 * allow_listen_unix ".." -> allow_listen "unix:.."
 * allow_listen also takes lists of strings
2014-04-10 12:40:08 +02:00
Stefan Bühler 22d186cecc [angel] rewrite config handling, rename items, document it
* remove "instance { ... }" wrapping
  * use "_" instead of "-"
  * modules -> modules_path
  * allow_listen { ip "..."; } -> allow_listen_ip "...";
  * allow_listen { unix "..."; } -> allow_listen_unix "...";
2014-04-10 12:40:08 +02:00
Stefan Bühler dfaab291d9 [angel] rewrite parser, changing syntax (similar to main config) 2014-04-10 12:40:08 +02:00
Stefan Bühler b5edda3bf4 [plugin_core] fix index "/filename" handling 2014-02-26 13:18:30 +01:00
Stefan Bühler b0ec46adec [tests] include test ca in dist 2014-02-04 12:44:27 +01:00
Stefan Bühler 3cd06f49ad restructure docs 2014-01-20 16:04:10 +01:00
Stefan Bühler 3bf3bb1238 [tests] add own test CA and test gnutls and openssl basic functionality 2013-09-10 15:24:05 +02:00
Stefan Bühler a497760f3d [ŧests] more tests, improve handling 2013-09-10 12:08:44 +02:00
Stefan Bühler 4f45909f2d [tests] cleanup to use new config style 2013-09-06 16:47:08 +02:00
Stefan Bühler a7c61d8c06 [tests] test secdownload.lua and the lua key-value list lookup 2013-09-06 16:43:28 +02:00
Stefan Bühler 061b2a4262 [core] handle differences between options/actions/setups in plugin.c 2013-08-22 18:02:50 +02:00
Stefan Bühler 8e41187ff6 [tests] add --valgrind-leak option 2013-08-22 15:02:35 +02:00
Stefan Bühler 8a0a8715d0 [tests] only use cache.disk.etag if request was handled 2013-08-21 12:42:37 +02:00
Stefan Bühler c963de4083 [tests] test auth.require_user from doc/core.lua 2013-08-21 12:10:03 +02:00
Stefan Bühler 921982f0fc [tests] put scgi application into separate file 2013-08-19 22:34:54 +02:00
Stefan Bühler 1c22f3aa2b [tests] add a stub python memcached server, add mod_memcached tests 2013-08-19 22:24:48 +02:00
Stefan Bühler 5fb031a910 [tests] run config test with valgrind too if enabled 2013-08-19 19:11:02 +02:00
Stefan Bühler c15b37260a [tests/mod_deflate] test removing Accept-Encoding header 2013-08-07 18:50:49 +02:00
Stefan Bühler a034e05eff [tests] fix path issues 2013-07-20 14:01:14 +02:00
Stefan Bühler 2301fa6835 [tests] cgi: check stderr and exit error with delayed upload 2013-07-20 11:38:51 +02:00
Stefan Bühler d27b40bed5 [tests] add /sbin and others to PATH for sha1 on FreeBSD 2013-07-20 11:26:26 +02:00
Stefan Bühler 4cdda3fb1e [tests] Fix uploadcheck for BSD (providing sha1 instead of sha1sum) 2013-07-20 10:56:47 +02:00
Stefan Bühler 38aad8128e [angel,tests] implement and use "one-shot" option to not restart crashed workers 2013-05-31 20:47:43 +02:00
Stefan Bühler 5e0a58be53 [stream-http-response] support chunk encoded responses 2013-05-31 20:28:53 +02:00
Stefan Bühler 3deb7c9e79 [core] support chunked uploads 2013-05-31 16:41:32 +02:00
Stefan Bühler f42ebc05f4 [tests] show more output on console with --debug 2013-05-28 11:46:41 +02:00
Stefan Bühler 04a63b009b [tests] etag with deflate and cache_disk_etag 2013-05-26 21:50:29 +02:00
Stefan Bühler 245dd5b5d8 [tests] add mod_cache_disk_etag to the mix 2013-05-26 20:13:53 +02:00
Stefan Bühler b1611a2047 [tests] add deflate support and tests 2013-05-24 10:57:09 +02:00
Stefan Bühler 1402e8987c [tests] use 127.0.0.2 as base address 2013-05-23 18:39:51 +02:00
Stefan Bühler 21ded067eb [test] mod_fastcgi: upload 2MiB and check sha1sum 2013-05-23 18:15:43 +02:00
Stefan Bühler a7166ed80c [tests] add --valgrind option 2013-05-18 19:11:18 +02:00