Event->io
[email protected] (Jeff Boes) 17 Jun 2002 13:56:11 -0400
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
I finally got some time to clean up my attempt at making Event->io work
with a Postgres database backend, so that "LISTEN/NOTIFY" signals
actually work (using this requires a patch to DBD::Pg, in case you are
interested, because the fd for the database connection is not normally
visible to Perl).
However, I'm slighly puzzled that the min and max parameters I send into
Event->io seem to be ignored. I didn't see anything in the
documentation that implied they would be ignored, so I expected that
my $event = Event->io(fd=>$fd, poll=>'r', min=>30, max=>60, ...);
would invoke the callback even if the file descriptor didn't have data.
Am I misled, somewhat wrong, or completely wrong? 8-)
--
Jeff Boes vox 616.226.9550 ext 24
Database Engineer fax 616.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise