Posted: Mon Dec 26, 2011 12:15 pm Post subject: Improved handling of network errors when downloading files
Truncated downloads due to flaky network connections appears to be increasingly common and in many cases browsers like Safari do not handle these situations as an error. Since the NeoOffice Mobile floating window in NeoOffice uses Mac OS X's WebView class and that class appears to suffer from the same problems that Safari does, any network connection errors that may occur when you select the "Open" option on any file and the file is downloaded from our NeoOffice Mobile servers, can leave NeoOffice Mobile with a truncated file download.
To properly handle flaky network connection errors, I have added code in the following test patch that checks if the total number of bytes in the downloaded file matches the expected number of bytes if the WebView class says the download completed without error.
If the downloaded file has the wrong number of bytes, the download is treated as a failed download and our code will automatically retry the download. If the retry fails to download the correct number of bytes, an error dialog will be displayed.
You can test out this new improved handing by install the following test patch. Please let us know if you are unable to download and open any files from your NeoOffice Mobile account after installing the patch:
Posted: Wed Dec 28, 2011 7:36 pm Post subject: Re: Improved handling of network errors when downloading fil
I found 2 small bugs that occur when handling network errors that I have fixed in the following test patch:
1. When a network error occurs during a file download, the NeoOffice Mobile floating window will now try to connect to the next server in our server array so that if you retry downloading the same file, it will have a better chance of succeeding.
2. When you press the Logout button and then log back in again, I found that you login screen reappears and you need to press the login button a second time. This was a problem with the server code so now it should only take one press of the login button to login after logging out.
Fixes for the above bugs are in the following test patch. Please let us know if you are unable to download and open any files from your NeoOffice Mobile account after installing the patch:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum