home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
ftpfid17.zip
/
HANGUP.TXT
< prev
next >
Wrap
Text File
|
1996-03-13
|
1KB
|
35 lines
While I was in hangup.cmd making some changes suggested
by Peter Davies, I added some other things and made some
changes.
It can now be used as a "watchdog" process for FTPFIDO
w/o hanging up the PPP connection for those who are connected
full time or prefer to hangup using something different.
It always looked for someone on a Bink/Vmodem system
but now it can be toggled off.
Instead of killing ftpfido when there are 0 files
in the "ftpin" after 10 min., (meaning it hung before recieving)
I compare filecounts in case there are leftover files
in the "ftpin".
The general mode of ops is Ftpfido starts it, it looks for
ftpfido's flag.
If there, it checks the # of files in "ftpin".
It then sleeps for 5 min.
It repeats the process 9 times.
On the 2nd pass, it counts the files in "ftpin".
If the count is the same as 10 min ago, either
the session hung when sending or you are sending
something that takes longer than 10 min.
So it hangs up and kills ftpfido and it's flags.
If it makes it to the 9th pass, (meaning the
filecount is changing and ftpfido is still there)
it checks the count against pass 1 (45min.) .
If the count is equal, either the session hung
recieving or you are recieving a single file that
takes longer than 45min.
So it hangs up and kills ftpfido and it's flags.
If the count is different, the whole process
starts all over again.