I send some data files until 12 mbytes to client,
if an user visit my index.jsp and call my link href="download.jsp".
first problem:
- during the download the server is busy with 100%
- download takes more time 20 minutes or more
- download rate is only 7 kbyte per second
- client is an internet explorer version 5xx until 6xx
- my code snippet on server:
PrintWriter pw = response.getWriter();
IModule module = createModule();
module.write(pw); // here only pw.write(...) init
pw.flush();
pw.close();
- other users have to wait long for their requests
second poblem:
- if an user closed the internet explorer, the server will not feel this event and do not stop sending data... until all data are send.
- if an user answer the pop up of internet explorer for downloading with "cancel", the server will be also not stop sending data... until all data are send.
What solutions are there? Could be threads usefully? How are their using in my
java code on websphere?