Would it be possible to make the timeout configurable?
There is probably not a global best tradeoff between unwanted failure and loss of patience
I’m not a fan of settings … and I believe that users won’t increase the timeout when getting a DAVdroid error message, but instead write a mail or rate it with 1*. So, the default timeout still would have to be high, so there’s no real need to decrease it by setting, too.
But the increased timeout value fixed the issue for me, thanks for that.
Good to hear that it works around the problem, which is OwnCloud taking a long time.
Another observation is that the owncloud response time really seems to be depend on the number of calendar entries.
Using the curl test from above, I reduced the response time in my setup from 47 sec to 10 sec by removing 800 (obsolete) out of 1270 calendar entries.
So another question: Would it be possible not to synchronize all entries, but only entries up to (for example) 6 months in the past?
This feature is already planned. However, OwnCloud (assuming that it has no indexes, which is searching takes so long) would still have to scan all entries to see whether they are in the requested time range. So this wouldn’t speed up OwnCloud, but rather slow it down.