• 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: "Bertrand Landry-Hetu" <email@hidden>
  • Date: Fri, 29 Aug 2008 13:21:20 -0400

I used to have many threads talking to one server using CFHTTPMessage
and everything was fine until I had to turn on
kCFStreamPropertyHTTPAttemptPersistentConnection, which turned out to
not be thread safe (at least from what I can see in the 10.4 source
code that was made public).

Nowadays, to be really safe, I keep all my CFNetwork traffic in the
same background thread and I haven't had any issues since.

2008/8/28 Mark Thomas <email@hidden>:
> Hi All,
>  Was wondering if anybody could advise on how thread safe the CFHTTPMessage
> / CFReadStream API's where ? (I am aware that I can use a runloop call
> function, but I'm working on keep the main thread to a minimum)
>
> Thanks
> Mark.
>
>
>  _______________________________________________
> 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
>
 _______________________________________________
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: CFHTTPMessage and thread safety
      • From: Mark Pauley <email@hidden>
References: 
 >CFHTTPMessage and thread safety (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Why might CFReadStreamCopyProperty(stream, kCFStreamPropertySocketNativeHandle) return NULL?
  • Next by Date: Re: Why might CFReadStreamCopyProperty(stream, kCFStreamPropertySocketNativeHandle) return NULL?
  • Previous by thread: Re: CFHTTPMessage and thread safety
  • Next by thread: Re: CFHTTPMessage and thread safety
  • Index(es):
    • Date
    • Thread