aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2020-04-02 18:31:02 +0200
committerMarc Hoersken <info@marc-hoersken.de>2020-04-02 18:31:02 +0200
commit7208a989b79604a78c9bb7dbd8a4dc3e98b5ca0f (patch)
treee1c1d491008b2db2ca65b91c8bc8a82d502619f5
parenta30237e3d113fb4c0f37a91da588b237cf4d824b (diff)
ftpserver.pl: log before and after data connection is closed
-rwxr-xr-xtests/ftpserver.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 89240fc76..62e423b44 100755
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -687,6 +687,7 @@ sub close_dataconn {
print DWRITE "DISC\n";
my $i;
sysread DREAD, $i, 5;
+ logmsg "Server disconnected $datasockf_mode DATA connection\n";
}
else {
logmsg "Server finds $datasockf_mode DATA connection already ".
@@ -699,10 +700,12 @@ sub close_dataconn {
}
if($datapid > 0) {
+ logmsg "DATA sockfilt for $datasockf_mode data channel quits ".
+ "(pid $datapid)\n";
print DWRITE "QUIT\n";
waitpid($datapid, 0);
unlink($datasockf_pidfile) if(-f $datasockf_pidfile);
- logmsg "DATA sockfilt for $datasockf_mode data channel quits ".
+ logmsg "DATA sockfilt for $datasockf_mode data channel quit ".
"(pid $datapid)\n";
}
else {