summaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2010-10-02 00:21:59 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-10-02 00:21:59 +0200
commit15622e69a995bb4bee04bc647d86d658860914be (patch)
treefbc632ba629436aa2b4bfb33030e4b4f823d3126 /tests/data
parent8500586251d9ef3310e09171a7514d9e1d054bf1 (diff)
downloadcurl-15622e69a995bb4bee04bc647d86d658860914be.tar.gz
sws: Added writedelay HTTP server command
This delays between write operations, hopefully making it easier to spot problems where libcurl doesn't flush the socket properly before waiting for the next response.
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/test111713
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/data/test1117 b/tests/data/test1117
index 25737bcd2..5b696112b 100644
--- a/tests/data/test1117
+++ b/tests/data/test1117
@@ -13,9 +13,10 @@ Range
HTTP/1.1 416 Requested Range Not Satisfiable
Date: Thu, 09 Sep 2010 14:49:00 GMT
Accept-Ranges: bytes
-Content-Length: 6
+Content-Length: 115
-Error
+This is a long error message that is large enough that the test server is
+guaranteed to split it into two packets.
</data>
<data1>
@@ -28,6 +29,10 @@ Content-Type: text/plain
partial body
</data1>
+
+<servercmd>
+writedelay: 1
+</servercmd>
</reply>
# Client-side
@@ -49,8 +54,10 @@ HTTP with invalid range then another URL
HTTP/1.1 416 Requested Range Not Satisfiable
Date: Thu, 09 Sep 2010 14:49:00 GMT
Accept-Ranges: bytes
-Content-Length: 6
+Content-Length: 115
+This is a long error message that is large enough that the test server is
+guaranteed to split it into two packets.
HTTP/1.1 206 Partial Content
Date: Thu, 09 Sep 2010 14:49:01 GMT
Accept-Ranges: bytes