Hi all,
I've finally been able to duplicate the hanging sync on my machine. I tried with many databases in the size range of 200-500KB and they always transferred just fine. I got it to happen with a 730KB database and realized that the size limit before the problem differs depending on the user.
For those that are curious what is going wrong, the system log reports this error:
Error while sending response (/DatabaseName.PDB -- http://192.168.0.175:8080/): *** -[NSConcreteFileHandle writeData:]: Resource temporarily unavailable
This doesn't happen with a device running iOS4 with the latest builds, only iOS5. I did some research on this error and there are others who are having problems with iOS5 and the NSFileHandle networking methods, which is the method I implemented to do a web server in HanDBase since the first iPhone build. Apparently while there is an issue with this suddenly failing, Apple's response has been to switch to using a different networking protocol that works better. This is frustrating, there is a lot of code that has been written to design and embed an HTTP server in the app and now I have to rewrite much of it. It also means that something that has been stable and reliable in the past will need lots of testing and tweaking.
I'm quite worried about this to be frank, but I am trudging forward with investigating and beginning the work. Unfortunately it does not appear that I'll have any quick fix to offer to you on this. Very sorry to report this and I will post updates to this thread as I make progress...