Re: How to do cancellable HTTP request using CFNetwork APIs
Re: How to do cancellable HTTP request using CFNetwork APIs
- Subject: Re: How to do cancellable HTTP request using CFNetwork APIs
- From: Jens Alfke <email@hidden>
- Date: Sun, 9 May 2010 17:37:30 -0700
I would really recommend using the asynchronous APIs instead. It avoids bad behaviors like polling. Your current loop means you’re using CPU time even when no data is arriving, and can also waste up to 100ms sleeping when there’s data to read. And these make canceling pretty trivial since you’re always in control.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden