The "unzipper" service will use Win32::ChangeNotify to monitor a directory without having to read it every now and then ... thus the service will take no processor time at all if you do not upload anything. The monitored directory will NOT be the one into which I upload the ZIPs ... it'll be a subdirectory of that one. So the service will stay sleeping while the FTP server creates and fills the ZIP file and be waked up by the 0B file after the ZIP is done.
Actually I might find out I do not need to do that and that I will be able to filter the notifications so that the service will not be notified everytime a next chunk of the file is uploaded, but I doubt it.
Thanks for the suggestion anyway :-)
Update 2003-04-29: Just FYI. In the end I used something similar to the 0B file idea. The file is not actually 0B, it's a little bigger. It contains an MD5 hash of the ZIP and some secret text. The Unzipper then computes such an MD5 hash itself and compares the two to make sure the ZIP was uploaded by the Uploader. We use these two services a lot and are quite happy with the solution.
Jenda
In reply to Re: Re: Re: Re: Asynchronous FTP
by Jenda
in thread Asynchronous FTP
by Jenda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |