Re: How to pre-open files in apache's processes

Xiao Lan <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Thu, Dec 2, 2010 at 3:38 AM, Mithun Bhattacharya <[email protected]> wrote:
> Can you confirm the error you are encountering using your current method ?
>
> I would like to understand what you are trying to achieve by having a global file handle - do you want to have modular code or does the content of the file somehow determine which handler to be used ?
>

Hi,

Thanks for the replying.
I was giving the example by openning a file.
In acutal I was using this module:

http://search.cpan.org/~sunnavy/IP-QQWry-0.0.16/lib/IP/QQWry.pm

For each client request if I open the data file:

my $qqwry = IP::QQWry->new('QQWry.Dat');

That will be slow IMO.

So I was thinking to pre-open the data file in each process of apache
and use it directly in each handler.

How about this case? Thanks.

Regards.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.