google-code-export / gwtupload

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

Add XML parameter for Servlet timeout #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

On some busy systems a see:

Unable to Contact Server

The request timeout has expired after 10000 ms.

Feature Request to add XML parameter to adjust timeout.

What is the expected output? What do you see instead?

rick-hicksteds-computer-2:gwtupload-read-only rickhicksted$ find . -exec grep 
-q "10000" '{}' \; -print 
./GwtUpload/core/src/main/java/gwtupload/client/.svn/text-base/Uploader.java.svn
-base
./GwtUpload/core/src/main/java/gwtupload/client/Uploader.java
rick-hicksteds-computer-2:gwtupload-read-only rickhicksted$ grep 10000 
./GwtUpload/core/src/main/java/gwtupload/client/Uploader.java
  private static final int DEFAULT_AJAX_TIMEOUT = 10000;

What version of the product are you using? On what operating system?

Latest Source 10/21/2011, Mac OS X

Please provide any additional information below.

Original issue reported on code.google.com by rhicks...@gmail.com on 22 Oct 2011 at 5:47

GoogleCodeExporter commented 9 years ago
This value is in the client part, so it is statically compiled in the 
javascript output, there is no way to change it without recompiling again the 
application.

The way to change it is just calling a static method of the class:

Uploader.setUploadTimeout(int milliseconds);

Original comment by manuel.carrasco.m on 9 Nov 2011 at 11:02

GoogleCodeExporter commented 9 years ago
I am calling the suggested call, but I still see a failure in 10 seconds:

        SingleUploader.setUploadTimeout(120000);

The popup/message is:

Unable to contact with the server: 
/QConvergeConsole/com.qlogic.qms.hba.gwt.Main/QlogicUploadServlet.  A request 
timeout has expired after 10000 ms.  

Original comment by rhicks...@gmail.com on 10 Nov 2011 at 9:21