]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests 266, 116 and 1540: add a small write delay
authorFabian Keil <fk@fabiankeil.de>
Wed, 11 May 2022 09:14:18 +0000 (11:14 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 11 May 2022 09:14:18 +0000 (11:14 +0200)
This makes it more likely that the trailer is received
seperately from the last-chunk.

curl doesn't seem to care about this but it makes the tests
more useful when testing external proxies like Privoxy.

tests/data/test1116
tests/data/test1540
tests/data/test266

index 7a883bfe1abe1576c83611b4ef64755bdcd5c24b..3543e751b32bf7f253234b3fbde7a1654b4e4401 100644 (file)
@@ -41,6 +41,9 @@ chunky-trailer: header data
 another-header: yes\r
 %endif
 </datacheck>
+<servercmd>
+writedelay: 10
+</servercmd>
 </reply>
 
 #
index 818cbb68dcb0ec5e4c7c4c6a24094ef453b7a0c6..2dc82655583c78f4b29bd24622c2f00b7c35ca2d 100644 (file)
@@ -34,7 +34,9 @@ Got 4 bytes but pausing!
 datad474
 MyCoolTrailerHeader: amazingtrailer\r
 </datacheck>
-
+<servercmd>
+writedelay: 10
+</servercmd>
 </reply>
 # Client-side
 <client>
index 6b5d2e6c775d3fa7dbc11dcd4881313621b3dd73..4f5f359d803ba6da05d47e422918b3e693ea263b 100644 (file)
@@ -37,6 +37,9 @@ Connection: mooo
 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc
 chunky-trailer: header data\r
 </datacheck>
+<servercmd>
+writedelay: 10
+</servercmd>
 </reply>
 
 #