"retryonerrorheader" bug

Upload core product.
Post Reply
vlad
Posts: 82
Joined: Sun Jan 04, 2009 6:38 pm

"retryonerrorheader" bug

Post by vlad »

Setting the value of "retryonerrorheader" parameter to "false" it will make the applet stop retrying when the server replies with the defined "errorheader" HTTP header. However, in JFileUpload version 2.6, this makes the JFileUpload cancel any retries also if the error received is

Code: Select all

org.apache.commons.httpclient.NoHttpResponseException: The server www.site.com failed to respond
.
This is not good, as most of the budget hosting services stop responding from time to time, and the upload resuming capability of JFileUpload is the main feature of interest for us.
In the meantime, I've set "retryonerrorheader" to "true", as a workaround, as it is better to retry the transfer all the time, instead of not retrying when it really matters.
Fixing this bug will definitely improve the applet.

Post Reply