> We developed ASSP2 to do what you are proposing and > it does it. I am not planning to do the same in a different way > (but more limited) in V1.
Well... for sure the "blckreports" is a "plus", but the "watchdog" probably isn't; that would solve any kind of crash or lock issue and shouldn't be so difficult to implement; it may even be a new and separate script (say "asspdaemon.pl") just handling the daemon/service code and spawning (and monitoring) the assp which will then always run as a "normal process" About the reporting issue; I understand that adding code to let it run "separately" may be a problem... but there are a couple of things to consider First of all, an apparent "bug"; when sending an email to the report address (asspblock or whatever one sets it to), apparently assp immediately starts generating the report, and the client is kept "hanging" ... and eventually the connection times out; I think that assp should send back a "250 Ok" and wait for the client closing the connection before starting report generation Then... the main issue when it comes to 1.5 and reports is that, since the code is single-threaded, it has to spend a lot of time parsing the files to find the blocked messages; now; here's a "combo" solution which may help; first of all, ASSP may push the report request into a queue, and then a function may, from time to time "pop" a request and process it, then, since the main problem is the "file parsing"; that may be moved into a separate perl script which will "grep" the logs and generate a list file; this way, assp will just exec the script, poll it to check if if completed and then just open the resulting file and generate the report in a matter of seconds and w/o slowing down the processing Does the above sound better :) ? ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Assp-test mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/assp-test
