mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 08:38:49 -05:00
ftpserver.pl: log before and after data connection is closed
This commit is contained in:
parent
a30237e3d1
commit
7208a989b7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user