• 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: CFReadStreamHasBytesAvailable locks up my threads on 10.3.9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFReadStreamHasBytesAvailable locks up my threads on 10.3.9


  • Subject: Re: CFReadStreamHasBytesAvailable locks up my threads on 10.3.9
  • From: Justin Greenfield <email@hidden>
  • Date: Tue, 19 Apr 2005 16:22:01 -0500

On Apr 19, 2005, at 3:42 PM, Becky Willrich wrote:

The changes to CFNetwork from 10.3.8 to 10.3.9 are very limited, to put it mildly; the only change in HTTP handling was to make the chunked header parser a bit more lenient. Do you know if the server is sending back a chunked response? Is SSL in the mix?

I don't know if the server is sending the response in chunks or not... but I have noticed that this problem only seems to occur when I'm hitting a CGI that returns a small bit of data, anywhere from about 15 bytes to around 200 bytes, if that's any indication. SSL is not in the mix at all.


Can you sample your application when it gets in the locked-up state and post the results? Run your application until it wedges, then from the command line, execute:

> sample <name of the application> 5

This will cause a text file to be written out to /tmp; it will contain a call-trace of where your program's spent its time. If you open it, you should see one or both threads in CFReadStreamHasBytesAvailable; the interesting bit is what happens within that call.

Thanks,
REW


Here are the results.. I commented out one of my background threads to see if there was some other concurrency issue I was missing, but the lockup still occurs when there is only one background thread doing downloading:


	http://sdg.ocs.ou.edu/people/justin/WeatherScope_850_sample.txt

I think we're onto something here...

Justin

(Edited to include a URL to the sample output instead of including the full contents of the sample output; list rejected it due to the size).

--
Justin Greenfield
email@hidden
Oklahoma Climatological Survey - Software Development Group

_______________________________________________
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: 
 >CFReadStreamHasBytesAvailable locks up my threads on 10.3.9 (From: Justin Greenfield <email@hidden>)
 >Re: CFReadStreamHasBytesAvailable locks up my threads on 10.3.9 (From: Becky Willrich <email@hidden>)

  • Prev by Date: Re: CFReadStreamHasBytesAvailable locks up my threads on 10.3.9
  • Next by Date: CFHTTPMessage and HTTP headers
  • Previous by thread: Re: CFReadStreamHasBytesAvailable locks up my threads on 10.3.9
  • Next by thread: CFHTTPMessage and HTTP headers
  • Index(es):
    • Date
    • Thread