• 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
Re: Network and DarkWake
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Network and DarkWake


  • Subject: Re: Network and DarkWake
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sun, 02 Sep 2012 12:23:01 +0700

On 31 Aug 2012, at 23:57, Marco S Hyman <email@hidden> wrote:

> On Aug 31, 2012, at 6:04 AM, Gerriet M. Denkmann <email@hidden> wrote:
>
>> But often (not always) my app (while in DarkWake) gets:
>> Error getaddrinfo(time.apple.com, ntp) -> nodename nor servname provided, or not known
>
> I believe its a race condition.  NTP is trying to access the network
> before it is fully re-initialized.  I'll see this (or similar network
> races) when waking my iMac up.  I don't believe it has anything to
> do with DarkWake, specifically.

You are probably right.

I changed my app so that if getaddrinfo() does not succeed, it waits 10 seconds, then tries again.
This seems to have fixed the problem.

Thanks for your suggestion!

Kind regards,

Gerriet.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Network and DarkWake
      • From: Matt Patenaude <email@hidden>
  • Prev by Date: Re: How to insert a "screen-only" character in an NSTextView?
  • Next by Date: Re: Network and DarkWake
  • Previous by thread: Re: NSDocument package saving invalidates wrapper? Options?
  • Next by thread: Re: Network and DarkWake
  • Index(es):
    • Date
    • Thread