aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test810
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-11-28 23:02:35 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-11-29 00:25:21 +0100
commitdda815b77680af1492c962e729f1bb90a48f65a4 (patch)
treecec0dd2628e52a86feef98d35e30519befa133c3 /tests/data/test810
parent8d3efb6be04d7b591523cf1fe211625d0180449c (diff)
POP3: fix end of body detection
Curl_pop3_write() now has a state machine that scans for the end of a POP3 body so that the CR LF '.' CR LF sequence can come in everything from one up to five subsequent packets. Test case 810 is modified to use SLOWDOWN which makes the server pause between each single byte and thus makes the POP3 body get sent to curl basically one byte at a time.
Diffstat (limited to 'tests/data/test810')
-rw-r--r--tests/data/test8107
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/data/test810 b/tests/data/test810
index 1c31042b6..09f9562a3 100644
--- a/tests/data/test810
+++ b/tests/data/test810
@@ -9,6 +9,11 @@ LIST
#
# Server-side
<reply>
+# We use SLOWDOWN to really exercise the end-of-body parsing over multiple
+# packets
+<servercmd>
+SLOWDOWN
+</servercmd>
# When doing LIST, we get the default list output hard-coded in the test
# POP3 server
<datacheck>
@@ -25,7 +30,7 @@ LIST
pop3
</server>
<name>
-POP3 LIST messages
+POP3 LIST messages from *SLOW* server
</name>
<command>
pop3://%HOSTIP:%POP3PORT/ -u user:secret