Re: CFHTTPMessage and thread safety
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