Re: NSData downloaded over socket is bigger than it should be...
Re: NSData downloaded over socket is bigger than it should be...
- Subject: Re: NSData downloaded over socket is bigger than it should be...
- From: "Michael Ash" <email@hidden>
- Date: Fri, 19 Dec 2008 12:07:11 -0500
On Fri, Dec 19, 2008 at 11:43 AM, Jean-Nicolas Jolivet
<email@hidden> wrote:
> Well after doing more tests...
>
> It happens even if I only have 1 active connection.... and it also happens
> even if only download 1 part of the multiparts file (i.e. the part is still
> slightly bigger than it should be) so basically the files that were ending
> up ok with multiple connections are still fine, the files that were ending
> up bigger than they should... are still bigger....
>
> What I *don't* understand is how the data can be bigger .... I would
> understand if some bytes were lost... but added?? I just don't see why it's
> happening... I'm tempted to re-write my ConnectionController with NetSocket
> to see if I get the same result...
I'll ask again: where do these extra bytes appear, and what do they
contain? That will give you a big clue.
If that's not enough, instrument your code. Log the data being
downloaded at every step of the way. At some point it will change from
being good to being bad. Then you have your answer.
Mike
_______________________________________________
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