From dda815b77680af1492c962e729f1bb90a48f65a4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 28 Nov 2011 23:02:35 +0100 Subject: 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. --- tests/data/test810 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/data') 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 +# We use SLOWDOWN to really exercise the end-of-body parsing over multiple +# packets + +SLOWDOWN + # When doing LIST, we get the default list output hard-coded in the test # POP3 server @@ -25,7 +30,7 @@ LIST pop3 -POP3 LIST messages +POP3 LIST messages from *SLOW* server pop3://%HOSTIP:%POP3PORT/ -u user:secret -- cgit v1.2.3