Why would -[NSHost hostWithAddress:] block for so long?
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