• 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: "Proper" use of SCNetworkReachability?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Proper" use of SCNetworkReachability?


  • Subject: Re: "Proper" use of SCNetworkReachability?
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Mon, 15 Jun 2015 09:10:41 -0700

On 8 Jun 2015, at 16:03, Rick Mann <email@hidden> wrote:

> So, the biggest problem has to do with network timeouts.

Indeed, timeouts are a problem, but mostly that's because folks come in with the assumption that timing out is the right thing to do.  In a lot of cases it isn't.  If the operation is user-visible, you should not implement a timeout.  Rather, you should show status/progress and let the user cancel and retry the operation when they see fit.

Historically I framed this as the 'kicked out the Ethernet cable' [1] problem:

1. user is using your app

2. user accidentally kicks out the Ethernet cable

3. things stop working

4. user rummages around under their desk and eventually figures out the problem

5. user comes up from their desk to discover that your app has timed out

6. user must manually retry

Without the timeout the connection would have gone through as soon as connectivity was restored.  With the timeout, you force the user through an unnecessary extra step.

The only place where timeouts make sense IMO is when the operation is completely 'headless'.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

[1] These days I should problem recast this as the "Wi-Fi / WWAN dead zone" problem (-:


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >"Proper" use of SCNetworkReachability? (From: Rick Mann <email@hidden>)
 >Re: "Proper" use of SCNetworkReachability? (From: Joshua Graessley <email@hidden>)
 >Re: "Proper" use of SCNetworkReachability? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Monitor inbound/outbound network statistics for particular device
  • Next by Date: Re: How does one set the PSK Shared Secret for PSK Ciphers in Secure Transport?
  • Previous by thread: Re: "Proper" use of SCNetworkReachability?
  • Next by thread: How does one set the PSK Shared Secret for PSK Ciphers in Secure Transport?
  • Index(es):
    • Date
    • Thread