On Sep 27, 2009, at 2:25 AM, Sergey Shapovalov wrote:

This makes me think that chunked upload from stream via NSURLConnection has been broken in iPhone OS 3.x. Unfortunately, in real life I can't upload my file by using setHTTPBody instead of setHTTPBodyStream because it's too big to store in memory.

That sounds plausible :( Is there a way you can capture the HTTP traffic to see exactly what's going on? Ordinarily I use the tcpflow utility for this, but it's not possible to install that on an iPhone. I think tcpdump can be used from a Mac/PC to capture packets from other devices on the LAN.

In any case, you should repost your questions on the macnetworkprog mailing list — this looks like a CFNetwork problem, and some of the engineers who work on that read that list.

Unfortunately, in real life I can't upload my file by using setHTTPBody instead of setHTTPBodyStream because it's too big to store in memory.

Have you tried memory-mapping? Use [NSData dataWithContentsOfMappedFile:].

—Jens_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to