• 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: OpenTransport Timeouts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenTransport Timeouts?


  • Subject: Re: OpenTransport Timeouts?
  • From: Quinn <email@hidden>
  • Date: Thu, 10 Nov 2005 14:59:58 +0000

At 22:27 -0800 9/11/05, Duane Murphy wrote:
I know this is ancient history [...]

Apple archaeologist at your service (-;

Is there a way to control or detect timeouts for simple OpenTransport
TCP endpoints? I'm using synchronous blocking endpoints with a notifier
and sync idle events (aka OTSimpleDownloadHTTP).

Is there a way to control the timeout on the connection? That is detect
if there has not been any response for some period of time?

If you're running on traditional Mac OS, OT supports timeout options. However, these were never officially documented and aren't implemented by the Mac OS X OT compatibility library. Let me know if this is interesting and I can dig up the details.


Otherwise, your best option (at least in this case) is to have your notifier check for the timeout and call OTCancelSynchronousCalls on the endpoint. This will get you out of the sync/blocking call (although it does have the side effect of killing the endpoint, so use this technique if a timeout is fatal).

<obligation> Stop using Open Transport! </obligation> (-:

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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: OpenTransport Timeouts?
      • From: "Duane Murphy" <email@hidden>
References: 
 >OpenTransport Timeouts? (From: "Duane Murphy" <email@hidden>)

  • Prev by Date: Re: A call to 'CloseOpenTransportInContext' blocks forever - why?
  • Next by Date: Re: OpenTransport Timeouts?
  • Previous by thread: OpenTransport Timeouts?
  • Next by thread: Re: OpenTransport Timeouts?
  • Index(es):
    • Date
    • Thread