-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Steffen,
On 6/1/16 5:14 PM, Steffen Heil (Mailinglisten) wrote: > Hi > > >> We had a similar problem. We just added a "preparation" step >> before the actual download. >> >> 1. User clicks on "request download" link 2. jQuery sends a >> request to servlet and instructs it to prepare the download 3. >> Meanwhile the request download link has been changed with >> Javascript to "preparing download..." 4. jQuery periodically asks >> the servlet if the download is ready or if the preparation has >> failed 5. If it is ready, the "preparing download..." is replaced >> by "download file" - if it has failed, an error message would be >> displayed >> >> This of course will only work if the client supports Javascript. >> But even if it doesn't you can work with HTTP reloads and/or >> redirects and using unique IDs to identify your client and their >> download. > > Yes, we thought about that. However it still leaves the problem of > a lot of storage on the server that is used for no reason and > increasing the time to download the backup.. So it's better to buffer the huge download in memory instead of on the disk? Maybe I don't understand the use case. It sounds like Mark may have a solution for you in another branch of this thread, anyway. - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJXUKKIAAoJEBzwKT+lPKRYOrQQALxoXRHWrb52PUU8tbrPdb2B H6lyk/6NN3m8hF0bKSyBq7RJhP6gTpQhavG9QtUSUUmAr6pOJsQBBzS3L0+LkH0W K2Zxu93U93SZtPszn3odu7mRighu0IYZ4HB3T+SXC6ThZSM7MzNoW+6FXpT6hdCh +S7aGV5LyqryVfOzYETLXbyqEbpBlIe/Ejt0IAOaJ5ylUa/nZ++aIEDJmV0IXyGP EIHir248L7Lh7YTLuS1hXs5MxgLxwCX2+MwN/TPGKyb+Z0kF1gfJIBbpSa0mC8rt zi0V/9nPKjaPGGBxk8IYgnfpRnFRbU1LeSltN+WKG312IcFsAQVum0lBhbe7WFRj Jc9OrMXU4QTuJW+9Bdm+i4lBTAsu5o2SbCjWo8mec07HGQ1bafXKCTwP0hXjuW1K uGpbOO3/At/8ZaS1K8wPGOSh+QhcBJA0k2FYdpLiKt77k/PtzAoEOXRn/x30d0WZ MzXarFuQZZvytU6bl67Brcq19Krz+XRpsWdJ1euTZtFWjCiY21aVdyyoWQ5+E+6f 1s3KYmdu0zyLpfwVJKD1fC8B5bx8mUTdzU8UEBILJkxC8JQ+DUc79eMSzBZP5s/G aT0tYrGmeNPbrAgzHW0JMeTUbsRgWOrl9bFfpMP1NahxA0ofZVI+Qk3PQSrDwtc1 JKKpkTspXNsaH0TdWUvs =uvUg -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org