• 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: Detecting network change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting network change


  • Subject: Re: Detecting network change
  • From: Greg <email@hidden>
  • Date: Thu, 23 Oct 2008 20:18:24 -0400


On Oct 23, 2008, at 8:03 PM, Jens Alfke wrote:

On Oct 23, 2008, at 4:42 PM, Greg wrote:

Very interesting. I'm still not sure though this was the best decision on (whoever's) part, because the socket becomes unreadable and unwritable while you're on that other network; essentially a zombie socket, which isn't very useful anyhow.  Perhaps it will reanimate if you switch back to the other network, but why would you do that or want that behavior?

For one thing, the network change might be very short-lived. If you have to briefly unplug and replug a network cable to move a machine, or if the cable accidentally got yanked out and then put back, or if you lose your WiFi signal for a second and then regain it, it can be nice that sockets continue on instead of all suddenly disconnecting. Especially in a server environment.

Well, that implies that the situation "User initiates network switch", and the situations you gave (losing wifi, cable unplugged, etc.) are "the same", or can't be differentiated.  That may well be the case in the way the OS X operating system is written, or the way TCP works, I understand, I was just pointing out that they are not, and in this context, leads to odd behavior.

- Greg
 _______________________________________________
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

  • Follow-Ups:
    • Re: Detecting network change
      • From: Quinn <email@hidden>
References: 
 >Detecting network change (From: Greg <email@hidden>)
 >Re: Detecting network change (From: Jens Alfke <email@hidden>)
 >Re: Detecting network change (From: Greg <email@hidden>)
 >Re: Detecting network change (From: "Shawn Erickson" <email@hidden>)
 >Re: Detecting network change (From: Josh Graessley <email@hidden>)
 >Re: Detecting network change (From: Greg <email@hidden>)
 >Re: Detecting network change (From: Josh Graessley <email@hidden>)
 >Re: Detecting network change (From: Greg <email@hidden>)
 >Re: Detecting network change (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Detecting network change
  • Next by Date: Re: Trouble getting syslogd to listen to incomming UDP 514
  • Previous by thread: Re: Detecting network change
  • Next by thread: Re: Detecting network change
  • Index(es):
    • Date
    • Thread