From 72688317adcedb9508fd2189e6c6d3945e06a004 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 8 Feb 2013 13:48:56 +0100 Subject: DONE: consider callback-aborted transfers premature This bug report properly identified that when doing SMTP and aborting the transfer with a callback, it must be considered aborted prematurely by the code to avoid QUIT etc to be attempted as that would cause a hang. The new test case 1507 verifies this behavior. Reported by: Patricia Muscalu Bug: http://curl.haxx.se/bug/view.cgi?id=1184 --- tests/data/test1507 | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 tests/data/test1507 (limited to 'tests/data/test1507') diff --git a/tests/data/test1507 b/tests/data/test1507 new file mode 100644 index 000000000..76ec5320d --- /dev/null +++ b/tests/data/test1507 @@ -0,0 +1,51 @@ + + + +SMTP +multi + + + +# +# Server-side + + + +# +# Client-side + + +smtp + + +lib1507 + + +# based on bug report #1184 + +SMTP with multi interface and CURLE_ABORTED_BY_CALLBACK + + +From: different +To: another + +body + + +smtp://%HOSTIP:%SMTPPORT/user + + + +# +# Verify data after the test has been "shot" + + +EHLO user +MAIL FROM:<1507-realuser@example.com> +RCPT TO:<1507-recipient@example.com> +DATA + + + + + -- cgit v1.2.3