Author Topic: Please offer re-downloading in case of checksum mismatches  (Read 976 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Please offer re-downloading in case of checksum mismatches
« on: 12 December 2011, 13:40:01 »
When a client downloads data from a server it is connected to, but, once the download is complete, the checksum differs to that of the server, a prompt offering to re-download this file should be displayed on the client. Currently, users need to reconnect to a server to trigger re-downloading.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: Please offer re-downloading in case of checksum mismatches
« Reply #1 on: 12 December 2011, 15:41:25 »
(How can the checksum fail?  Suggests software bug?)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Please offer re-downloading in case of checksum mismatches
« Reply #2 on: 12 December 2011, 15:44:51 »
If the checksum mismatches between server and client then it indicates that either the file transport broke or a bug in the software is getting in the way.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Please offer re-downloading in case of checksum mismatches
« Reply #3 on: 12 December 2011, 23:07:55 »
I get broken downloads all the time on my crap connection. With a 20 MB test file, it breaks nearly 1/4 of the time (thinking it's complete when it's not). Those instances would cause the checksum to fail.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Please offer re-downloading in case of checksum mismatches
« Reply #4 on: 13 December 2011, 01:52:37 »
Usually the temp files are deleted on fail with the current code.

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: Please offer re-downloading in case of checksum mismatches
« Reply #5 on: 13 December 2011, 06:40:05 »
I meant it sound like poor error handling.  The lower layer that does the transfer knows if there is an io error.  It could also be taught to resume.

A dialog is a band-aid on the symptom, not the cause?

 

anything