Not continuous, but the directory is polled. The only other sensible way around this is to use IPC or pipes, which is not portable.
open the dir, select, and then readnext to see if there's a file item present. If so, delete it and process the request based on that ID. You're basically popping off the 'stack'. If your configuration isn't saturated, polling ( or stack poppin) takes a split-second to happen. It's not like there's 5000 items in the directory and you have to deal with select lag. I had one issue on OpenQM/Linux, with the select polling. A 'loosey-goosey' loop ate up all the CPU ticks. A half-second NAP or SLEEP solves the CPU problem, but it does reduce response time a tad. Adding another phantom will more than make up for that lag. Sure, there are a zillion other ways to manage a queue stack. This is the most platform and flavor cross-compatible. If you have another design suggestion that would work better, please let me know. Afterall, the project is GPL and needs some enhancing! -Glen > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Stewart > Leicester > Sent: Tuesday, February 08, 2005 5:37 PM > To: [email protected] > Subject: RE: [U2] Universe to Web interface > > > >The spooler broadcasts the presence of a new queue item, by writing > >an empty file in the main spool dir using the ID. > >At this point, the spooler waits for a response in a separate > >response directory. > > > >Server-side, our HTTP phantom runs and waits until new item IDs show > >up in a local directory (the main spooler dir) > > > >Glen > >http://picksource.com > > > > Glen: How does the HTTP phantom find a new item ID in the directory? > Continuous SELECTs? > > Stewart > -- > Stewart Leicester | http://www.ThreatFocus.com > V.P. Engineering | mailto:[EMAIL PROTECTED] > Threat Focus, Inc. | 925-551-0130 Voice > "Knowledge is your best defense" | 509-695-1373 Fax > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
