• 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: Socket timeout issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Socket timeout issue


  • Subject: Re: Socket timeout issue
  • From: Dmitry Dolinsky <email@hidden>
  • Date: Fri, 7 Sep 2007 11:17:59 -0700

Mick,

I don't have a direct answer to this but I recommend reading this technote <http://developer.apple.com/technotes/tn/tn1145.html> if you haven't done so.

Specifically, "Endpoint Mortality on Mac OS X" section has this to say:

"This creates a stale connection, one that is effectively broken. Unfortunately, your application is not notified of this. Specifically, you might expect a TCP connection to break (for example, an asynchronous OT endpoint would receive a T_DISCONNECT event), but this doesn't happen. Instead the connection continues to exist but won't be able to send or receive any data."

Well, it does not say anything about timeouts but I suppose it's a hint that things are screwed up badly? In any case, that same section has code sample code check explicitly if given socket is stale. Personally I have not used this technique. I did something along the lines of what Peter suggested using newer reachability APIs.

--Dmitry

On Sep 7, 2007, at 10:53 AM, Mitchell Laurren-Ring wrote:


On Sep 7, 2007, at 6:17 AM, Peter Sichel wrote:

I asked the SCF to notify me any time an IP address changes using
some Apple supplied sample code (probably written by Quinn).
I'll send you the sample off list.

Thanks for the workaround, Peter. This is definitely one of the approaches I had considered. However, I would rather have the timeout on the send work correctly. Does anybody on the list have any ideas on how to make that happen?



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


This email sent to email@hidden

_______________________________________________ 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: Socket timeout issue
      • From: Mitchell Laurren-Ring <email@hidden>
References: 
 >Socket timeout issue (From: Mitchell Laurren-Ring <email@hidden>)
 >Re: Socket timeout issue (From: "Peter Sichel" <email@hidden>)
 >Re: Socket timeout issue (From: Mitchell Laurren-Ring <email@hidden>)
 >Re: Socket timeout issue (From: "Peter Sichel" <email@hidden>)
 >Re: Socket timeout issue (From: Mitchell Laurren-Ring <email@hidden>)

  • Prev by Date: Re: Socket timeout issue
  • Next by Date: Re: Socket timeout issue
  • Previous by thread: Re: Socket timeout issue
  • Next by thread: Re: Socket timeout issue
  • Index(es):
    • Date
    • Thread