crustycramps / quake2-gwt-port

Automatically exported from code.google.com/p/quake2-gwt-port
GNU General Public License v2.0
0 stars 0 forks source link

fail to download q2-314-demo-x86.exe #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
install-resources takes too long to download q2-314-demo-x86.exe. It
actually never finished on my machine.

What is the expected output? What do you see instead?
The exe should be downloaded and unpacked. Instead, I see the batch starts
to print dots as it is downloading, then it freezes.

What version of the product are you using? On what operating system?
hg tip: 18
OS: Windows XP

Please provide any additional information below.
The user could download manually the executable.
Downloader.java could check if the file is already present, if not, then it
will start to download; then unpack.

Original issue reported on code.google.com by matthias.buchner on 13 Apr 2010 at 6:21

GoogleCodeExporter commented 9 years ago
Alternatively, we could allow the user to interrupt the download and skip to 
the next
mirror?

Original comment by stefan.haustein on 15 Apr 2010 at 11:20

GoogleCodeExporter commented 9 years ago
If we check for an existing q2-314-demo-x86.exe, we probably should make sure 
it is
complete... Perhaps we could download the file to a temp file, and only rename 
on
success.... 

Original comment by stefan.haustein on 15 Apr 2010 at 11:23

GoogleCodeExporter commented 9 years ago
We can also do a checksum verification.

Original comment by matthias.buchner on 15 Apr 2010 at 3:35

GoogleCodeExporter commented 9 years ago
Sometimes it doesn't even connect to any mirror.

I solved the problem manually downloading installer and changing source code 
like this 

Downloader.java:

+import java.io.FileInputStream;

at imports and

+File file = new File("%PATH_TO_FILE%\\q2-314-demo-x86.exe");
+InputStream is = new FileInputStream(file);

instead of 

InputStream is = url.openStream();

Original comment by iJe...@gmail.com on 7 Mar 2011 at 4:30

GoogleCodeExporter commented 9 years ago
Added more checks.
Cannot reproduce
If one of the urls is dead, please let us know which one to remove

Original comment by stefan.haustein on 11 Oct 2011 at 6:31

GoogleCodeExporter commented 9 years ago

Original comment by stefan.haustein on 11 Oct 2011 at 6:31