Age | Commit message (Collapse) | Author |
|
buffered IO and test run-regress-args-http-chunked.pl would fail
on slow hardware. Limit debug output to one line per 1% of data.
Improve function write_syswrite(). Sync with httpd regress. Fix
whitespace.
|
|
OCSP error messages.
|
|
test.
|
|
error messages.
|
|
This allows to identify such tests by looking at their output.
|
|
in different environments.
|
|
sockopt correctly with Perl pack on i386. Make it possible to grep
in each others client and server logfile. Client does not simply
sleep but waits for short write at server.
|
|
- Respond with a 400 (Bad Request) if there is more than one Host:
header to prevent ambiguities.
- Make sure that the host in the optional absolute form of
request-target (eg. GET http://www.target.com/ HTTP/1.1) matches the
Host: value. Proxies are supposed to ignore the Host: value if the
request-target exists, but relayd used to ignore the absolute
request-target form instead. In HTTP terminology, relayd is a gateway
and not a proxy, but it has to make sure that the host is validated
consistently.
OK benno@ bluhm@
|
|
|
|
|
|
declared in conditional statement.
|
|
|
|
|
|
file. They are substituted automatically, to avoid this in each
single test.
|
|
ok reyk@, bluhm@
|
|
|
|
|
|
HTTP client writes multiple requests or chunks in a single transfer,
relayd invokes the libevent callback manually for the next data.
If the callback closes the session, this results in an use after
free.
Test an invalid second request method, test an invalid header line
in the second PUT request, test an invalid second chunked length
for a PUT request. Also test multiple valid HTTP 1.1 PUT requests
with chunked body.
To detect crashes of relayd, start it with "prefork 1" and grep for
"lost child" log messages. Unfortunately only the first child is
monitored by the parent.
|
|
to pass also if relayd is compiled with DEBUG.
|
|
line. Check that the session in relayd gets closes and it does not
result in a file descriptor leak.
Bug in relayd found by claudio@.
|
|
response's content length may be an unexpected value as an error
page is shown.
|
|
logging of SSL errors. Do not import unneeded Socket constants.
|
|
|
|
its log file. Change regression tests form ssl to tls.
|
|
This includes coding style, better error messages and variable
naming.
|
|
do. Also explain the optional environment variables.
|
|
with ony byte content length triggered relayd to hang. This has
been fixed already.
|
|
|
|
to specify an array of md5 hashes in the test arguments and check
all of them in the client and server log files. So test that relayd
does not modify the http body.
|
|
test more strict again. Backout rev 1.2 of args-timeout-http.pl.
|
|
everybody stand back. i know regular expressions.
|
|
ok reyk
|
|
ok reyk
|
|
ok reyk
|
|
ok bluhm@ benno@
|
|
files. We do not want to put a license header into each subtest.
suggested by reyk@
|
|
common web servers). Add a related regress test.
OK benno@
|
|
with an empty line and a header line.
|
|
|
|
executed tests. This allows to micro benchmark relayd.
based on a diff from andre@; OK reyk@
|
|
with associated lists instead of the complicated lookup table and
"others" list. This might add a little malloc overhead for common
headers but also fixes some issues like the handling of repeated
headers - for example, handling of multiple "Set-Cookie" headers.
ok bluhm@ (regress part)
ok benno@
|
|
|
|
|
|
suggested by reyk@
|
|
per default for the default length value in check_logs(). If a
test doesn't want this check, it has to disable it explicitly with
nocheck. Also remove unneeded nocheck switches for deeper testing.
|
|
From RFC 7230, section 3.2.2:
"A sender MUST NOT generate multiple header fields with the same field
name in a message unless either the entire field value for that
header field is defined as a comma-separated list [i.e., #(values)]
or the header field is a well-known exception (as noted below)."
|
|
that offers multiple requets per HTTP connection is run twice.
First all requests are run over a single TCP connection. Then for
each requests a separate TCP connection is established. If a
requests during a persistent connection fails, a reconnect is done
as relayd cancels the whole connection. This allows stricter tests
for filters.
OK reyk@
|
|
As discussed with bluhm@ deraadt@
|
|
filtering rules. Some of the filenames are based on the old grammar,
we keep them for now and just update the contents to have a
before/after comparison of the features.
Most of the work was done by Andre de Oliveira (andre@)
OK bluhm@ benno@
|
|
an obj directory. The relayd process can also run on a remote
machine for different timing.
|