• 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: NSData downloaded over socket is bigger than it should be...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Fwd: NSData downloaded over socket is bigger than it should be... (From: email@hidden)
 >Re: NSData downloaded over socket is bigger than it should be... (From: Jean-Nicolas Jolivet <email@hidden>)

  • Prev by Date: Listening for changes
  • Next by Date: Re: NSData downloaded over socket is bigger than it should be...
  • Previous by thread: Re: NSData downloaded over socket is bigger than it should be...
  • Next by thread: Re: NSData downloaded over socket is bigger than it should be...
  • Index(es):
    • Date
    • Thread