• 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: glenn andreas <email@hidden>
  • Date: Fri, 19 Dec 2008 12:34:11 -0600


On Dec 19, 2008, at 12:24 PM, Jean-Nicolas Jolivet wrote:

Well after comparing the data that I am receiving with the data that I SHOULD be receiving, it turns out that dots (yes, the dot character (.) ) are added all over the place in the data.... if I have 10 extra bytes, it means 10 extra dots were added to my data, so for example, a line that SHOULD read:

.m;{äMã≈P#ü1ˆTMë&L>ÆÖ-«∏4iˇ¯àÚPë‡gêæ¯Ø

Instead reads:
..m;{äMã≈P#ü1ˆTMë&L>ÆÖ-«∏4iˇ¯àÚPë‡gêæ¯Ø

Notice the extra dot at the beginning of the line... it turns out that ALL the extra dots that gets added are at the beginning of lines, when there is already a dot there....

Now, that data is downloaded straight from the socket and saved to disk, I am not adding/merging nor doing anything with it so I wonder if it's not a bug with AsyncSocket?? but I guess if it were adding dots all over the place people would've notice it already... I'm out of ideas here really!



I could be wrong on this, but assuming you're using NNTP, ISTR it documented to have lines separated by cr+lf? And that the multi-part stuff is based lines separated by those pairs - and if you separate into lines based one only one of them, the extra will get added (erroneously) to the line?



Glenn Andreas                      email@hidden
 <http://www.gandreas.com/> wicked fun!
Cardographer | the custom playing card designer


_______________________________________________

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


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

  • Prev by Date: Re: Optimizing NSRectFill
  • Next by Date: Re: Listening for changes
  • 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