Downloads exceeds update size

Asked by Yaroslav Glushchenko

I have faced a strange issue with my latest release: Sparkle downloads more than available and never stops. I did face the issue myself and was really surprised because source .zip looked fine and it was properly download with browser and ftp client. I have re0build the update and it did the trick for me, however, I have received a report from a user - he wasn't able to update the app due to the same reason.

What could be wrong and how can I fix it?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andy Matuschak (andymatuschak) said :
#1

Sounds like a webserver issue. Sparkle uses basically out-of-the-box Cocoa mechanisms for downloading the update, so there's unlikely to be a problem there.

Revision history for this message
Yaroslav Glushchenko (gobra-rus) said :
#2

Well, that was my first idea. However, I was able to download the archive with Safari and actually Sparkle determines the size properly, it reports something like "Downloading 35mb of 20mb" and counting up. So, since the size is computed correctly, I wonder why doesn't it stop...

Actually, Cocoa isn't perfect and i could be a bug there as well ;)

Revision history for this message
Andy Matuschak (andymatuschak) said :
#3

Hm. The initial HTTP response providing the file size could be correct, but it could still be sending too much data before hanging up. How does curl behave?

Revision history for this message
Yaroslav Glushchenko (gobra-rus) said :
#4

Well, curl download the file fine at the moment, however, at my latest tests Sparkle does well too. At the same time my customer wasn't able to update earlier today... Really strange issue, I haven't faced anything like that before and our web-server looks fine, at least I always succeed downloading files.

Can you help with this problem?

Provide an answer of your own, or ask Yaroslav Glushchenko for more information if necessary.

To post a message you must log in.