• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Why would -[NSHost hostWithAddress:] block for so long?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why would -[NSHost hostWithAddress:] block for so long?


  • Subject: Why would -[NSHost hostWithAddress:] block for so long?
  • From: Dan Wood <email@hidden>
  • Date: Thu, 6 Oct 2005 21:33:40 -0700

I'm calling -[NSHost hostWithAddress:] in my application, and it seems that the first invocation, this blocks for about 15 seconds!

I don't have a problem with blocking for a moment or two as it accesses the DNS servers out on the net, but fifteen seconds???

The cache methods in NSHost don't seem to have any effect.

Any suggestions? (I suppose I could invoke it in a background thread for its first run when the application is launched...)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Why would -[NSHost hostWithAddress:] block for so long?
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: Printing multiple pages using drawRect:
  • Next by Date: Re: Why would -[NSHost hostWithAddress:] block for so long?
  • Previous by thread: Re: Problem with application hiding and revealing
  • Next by thread: Re: Why would -[NSHost hostWithAddress:] block for so long?
  • Index(es):
    • Date
    • Thread