-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings,

Thursday, April 18, 2002, 8:20:53 AM, you wrote:

nnsn> Hi,

nnsn> At Thu, 18 Apr 2002 23:59:19 +0900,
nnsn> Roy J. Milican <roy / milican.com> wrote:
>> I did both of the patches on resolv.rb and I am still having the
>> problems with it saying too many files open.

nnsn> After applying the second patch, you need to close the DNS
nnsn> object explicitly, or use DNS.open with a block.


Could you give me an example.  Sorry if I'm being dumb here but my
patched version is still doing the "Too many files open" thing. 
Since
I didn't know what you ment quite by close the DNS object explicitly
I
changed my DNS.new to DNS.open, no error running it but it still
gives
me the too many files error after 256 times.  This is the code I'm
using.

domainrecord = Resolv::DNS.open.getresources(@domain,
Resolv::DNS::Resource::IN::MX).collect{|r| [r.exchange.to_s,
r.preference]}

Any help would be appriated.

Roy
- --
Roy Milican
roy / milican.com
   öö

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i

iQA/AwUBPL9uDwNBS2G+YzIDEQJqJgCgg/cPmHP7gvMKoR9n7TjDOO2lFsEAniEZ
FknSFlop92wFQaOuSXFmbOOW
=2J/Y
-----END PGP SIGNATURE-----