From 088ba97a2471c97e90fe7153dff0ce119faab4ef Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 5 Dec 2011 11:42:10 +0100 Subject: FTP: call opensocket callback properly When the new socket is created for an active connection, it is now done using the open socket callback. Test case 596 was modified to run fine, although it hides the fact that the close callback is still called too many times, as it also gets called for closing sockets that were created with accept(). --- tests/data/test596 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/data/test596') diff --git a/tests/data/test596 b/tests/data/test596 index 9703f0471..73e8a78d5 100644 --- a/tests/data/test596 +++ b/tests/data/test596 @@ -16,9 +16,10 @@ moo [OPEN] counter: 1 [OPEN] counter: 2 -moo [CLOSE] counter: 2 +moo [CLOSE] counter: 1 +[CLOSE] counter: 0 @@ -43,11 +44,14 @@ ftp://%HOSTIP:%FTPPORT/596 log/ip596 activeftp # # Verify data after the test has been "shot" + +s/^(EPRT \|1\|)(.*)/$1/ + USER anonymous PASS ftp@example.com PWD -EPSV +EPRT |1| TYPE I SIZE 596 RETR 596 -- cgit v1.2.3