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/Makefile.am | 2 +- tests/data/test1507 | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1507 (limited to 'tests/data') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index d82534dc8..ae59643af 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -93,7 +93,7 @@ test1379 test1380 test1381 test1382 test1383 test1384 test1385 test1386 \ test1387 test1388 test1389 test1390 test1391 test1392 test1393 \ test1400 test1401 test1402 test1403 test1404 test1405 test1406 test1407 \ test1408 test1409 test1410 test1411 test1412 test1413 \ -test1500 test1501 test1502 test1503 test1504 test1505 test1506 \ +test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \ test2000 test2001 test2002 test2003 test2004 test2005 test2006 test2007 \ test2008 test2009 test2010 test2011 test2012 test2013 test2014 test2015 \ test2016 test2017 test2018 test2019 test2020 test2021 test2022 \ 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