Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

Download or installation problems? Try these steps
Problems after upgrading to NeoOffice 2017? Try these steps


Support
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


RSS Feeds
· Announcements Only
· All Posts


  
NeoOffice :: View topic - Improved handling of network errors when downloading files
Improved handling of network errors when downloading files
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    NeoOffice Forum Index -> NeoOffice Mobile Testing
View previous topic :: View next topic  
Author Message
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11856
Location: California, USA

PostPosted: Mon Dec 26, 2011 12:15 pm    Post subject: Improved handling of network errors when downloading files Reply with quote

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:

Intel:
http://joe.neooffice.org/test/NeoOffice-3.2.1-Patch-2-Test-3-Intel.dmg

Patrick
Back to top
View user's profile Send private message Visit poster's website
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11856
Location: California, USA

PostPosted: Wed Dec 28, 2011 7:36 pm    Post subject: Re: Improved handling of network errors when downloading fil Reply with quote

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:

Intel:
http://joe.neooffice.org/test/NeoOffice-3.2.1-Patch-2-Test-4-Intel.dmg

Patrick
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    NeoOffice Forum Index -> NeoOffice Mobile Testing All times are GMT - 7 Hours
Page 1 of 1

 
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

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.03 Seconds