• 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: CFHTTPMessage and thread safety
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFHTTPMessage and thread safety


  • Subject: Re: CFHTTPMessage and thread safety
  • From: Mark Pauley <email@hidden>
  • Date: Fri, 29 Aug 2008 12:28:42 -0700

Sorry, that should have been:
spawn a bunch of threads, each thread creates a message / http stream and sets the Persistent Connection property on its stream.  Then we schedule on the current RunLoop,
Call CFReadStreamOpen on this thread's ReadStream
run the current RunLoop and handle the callbacks, unschedule the ReadStream and join the thread when the download is finished.  What is your usage pattern?

If you decide to not schedule the streams, you'll get synchronous behavior per-thread which is similar to a lot of the Java networking patterns I've seen.


_Mark
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

References: 
 >CFHTTPMessage and thread safety (From: Mark Thomas <email@hidden>)
 >Re: CFHTTPMessage and thread safety (From: "Bertrand Landry-Hetu" <email@hidden>)
 >Re: CFHTTPMessage and thread safety (From: Mark Pauley <email@hidden>)

  • Prev by Date: Re: CFHTTPMessage and thread safety
  • Next by Date: Re: CFHTTPMessage and thread safety
  • Previous by thread: Re: CFHTTPMessage and thread safety
  • Next by thread: Re: CFHTTPMessage and thread safety
  • Index(es):
    • Date
    • Thread