mobilesfeatures / gwtupload

Automatically exported from code.google.com/p/gwtupload
Other
0 stars 0 forks source link

The upload timeout should be parameterizable. #83

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use a real slow connection to upload a file
2. Try to upload the file
3. The upload will timeout any time

What is the expected output? What do you see instead?
I'd expect the upload timeout to by settable by a parameter in the web.xml 
(like e.g. the slow upload parameter). So I can raise the timeout in the 
configuration if I expect slow connections. Instead, the timeoput is hard-coded 
to 20 seconds.

What version of the product are you using? On what operating system?
GWT-Upload 0.6.1, Server is Tomcat 6 on SLES 11, client is Firefox 3.6.13 on 
Windows

Please provide any additional information below.
Workaround could be to write your own UploadServlet to exchange the 
UploadListener implementation.

Original issue reported on code.google.com by Christop...@gmail.com on 15 Dec 2010 at 7:36

GoogleCodeExporter commented 8 years ago
You are talking about the timeout in UploadListener class, right?

private static final int MAX_TIME_WITHOUT_DATA = 20000;

Original comment by manuel.carrasco.m on 29 Dec 2010 at 6:00

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r824.

Original comment by manuel.carrasco.m on 29 Dec 2010 at 3:23

GoogleCodeExporter commented 8 years ago
Put this in your web.xml to change the timeout (value in milliseconds)

   <context-param>
    <param-name>noDataTimeout</param-name>
    <param-value>20000</param-value>
   </context-param>

Original comment by manuel.carrasco.m on 29 Dec 2010 at 3:25