diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2004-10-17 18:18:20 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2004-10-17 18:18:20 +0000 |
commit | 324cf9712d3ec559850a27dfdf3d152c691fef5a (patch) | |
tree | cd55d8e5eeee6337febc8e0c4491f654d8ba063a /test/utils.c | |
parent | 561041c84d79db02059f76f6a2eb6ebe079c9e7d (diff) | |
download | neon-324cf9712d3ec559850a27dfdf3d152c691fef5a.tar.gz |
* test/utils.c (serve_infinite): Move from props.c
* test/props.c (serve_infinite): Remove function.
* test/request.c (serve_infinite_folds, serve_infinite_headers):
Remove functions. (unbounded_headers, unbounded_folding): Adjust to
use serve_infinite.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@322 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'test/utils.c')
-rw-r--r-- | test/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/utils.c b/test/utils.c index a268461..0a070b3 100644 --- a/test/utils.c +++ b/test/utils.c @@ -132,3 +132,17 @@ int serve_sstring_slowly(ne_socket *sock, void *ud) return 0; } + +int serve_infinite(ne_socket *sock, void *ud) +{ + struct infinite *i = ud; + + CALL(discard_request(sock)); + + SEND_STRING(sock, i->header); + + while (server_send(sock, i->repeat, strlen(i->repeat)) == 0) + /* nullop */; + + return OK; +} |