aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1507
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-02-08 13:48:56 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-02-08 13:57:01 +0100
commit72688317adcedb9508fd2189e6c6d3945e06a004 (patch)
tree57929c31c5dc320937c1ba35ae6f592a24acdc93 /tests/data/test1507
parent07f97809b81553de5b6ecf0385bb8cd022eea1c1 (diff)
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
Diffstat (limited to 'tests/data/test1507')
-rw-r--r--tests/data/test150751
1 files changed, 51 insertions, 0 deletions
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 @@
+<testcase>
+<info>
+<keywords>
+SMTP
+multi
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+smtp
+</server>
+<tool>
+lib1507
+</tool>
+
+# based on bug report #1184
+ <name>
+SMTP with multi interface and CURLE_ABORTED_BY_CALLBACK
+ </name>
+<stdin>
+From: different
+To: another
+
+body
+</stdin>
+ <command>
+smtp://%HOSTIP:%SMTPPORT/user
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+EHLO user
+MAIL FROM:<1507-realuser@example.com>
+RCPT TO:<1507-recipient@example.com>
+DATA
+</protocol>
+<upload>
+</upload>
+</verify>
+</testcase>