Re: NSURLConnection vs. CURLHandle vs. Others
Re: NSURLConnection vs. CURLHandle vs. Others
- Subject: Re: NSURLConnection vs. CURLHandle vs. Others
- From: Stefan Pantke <email@hidden>
- Date: Wed, 3 Mar 2004 16:59:46 +0100
Meanwhile the leaks in __synchronous__ URL-loading have been confirmed
by
Apple's DTS. So, you should not use them.
[Thanks to DTS for the speedy answer]
The problem is open, a fix date is currently not available.
Especially, the hint in OS X 10.2.x release notes indicating
that this problem is fixed, is - at least not in 10.3 - currently not
valid.
My test apps showed, that the asynchronous calls do not leak.
Stefan
___
European developer? Join the EURO cocoa/WO developer listing!
Send an email to email@hidden for details.
Am 02.03.2004 um 20:01 schrieb Edison Thomaz:
Hi list,
I am currently writing a data gathering and analysis tool that needs to
download thousands of XML files every hour. I've been experimenting
with
different strategies for the download of the files and I was wondering
which
one you believe is the most preferable. I am interested in performance
but
also in the ability to control settings such as timeout interval, etc.
Caching and download directly to disk are not features I need, but
being
able to do something in Redirection or Authentication cases are
desirable.
One of the strategies is performing asynchronous downloads using
NSURLConnection. It seems to work well, although I am not sure if
NSURLConnection was built for this kind of load. Considering that this
class
was recently added to Foundation, I wonder if it's already stable and
resilient enough. Apparently, it's still leaky as this thread
indicates:
http://cocoa.mamasam.com/COCOADEV/2004/02/1/84172.php
Also, one of the parameters of NSURLConnection is timeoutInterval, but
it
doesn't seem to work as well as max_time in CURL for example. At least
that
has been my experience.
Another option that seems to work well is to use CURLHandle. It has a
connection-timeout parameter that you can set, which is great, but a
max_time would be even better.
I know that there are lots of socket packages out there that I could
try. Do
you have any suggestions given my app requirements? I'd appreciate it.
Thanks!
Edison Thomaz
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.