[web2py] Re: Response Stream Control

2014-09-23 Thread Leonel Câmara
Even if TCP doesn't fail there could be corruption copying the file to disk. Hell a cosmic ray may flip a bit, it can happen. The only way to be sure is to verify. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https:

[web2py] Re: Response Stream Control

2014-09-22 Thread Derek
Well, if this is http, there really is no way to tell how much of a file was downloaded by a client, unless you write the webserver part yourself. Web2py never sees if a file is completely downloaded or not. Why are you using HTTP if you need to be absolutely sure that the file transferred? Hav

[web2py] Re: Response Stream Control

2014-09-22 Thread Leonel Câmara
Can't you just check what wget returns for errors? That said, the only way to be sure there was no corruption is using the hash method, I don't think that's too much for even that machine to do to be honest, you can use cksum instead of md5sum if md5sum is too resource intensive. If this is stil