Open markNZed opened 2 years ago
I've added the ability to have custom timeouts for the httpclient used for WebDAV, it's just that code needs to be tested as it's part of a more broad set of changes and I've been quite busy as of late and have sadly procrastinated this project quite a bit. I do hope to devote the solid 5 hours needed to get this ready for a release soon.
Hello @mickstar ,
did you have time to check those timeouts? I am recently (2 months?) having problems with uploading files to WebDAV - almost always I got:
java.io.InterruptedIOException: timeout
Is it somehow connected to this 30 seconds write timeout under webdav that @markNZed mentioned?
It seem to be 30 seconds for a write timeout under webdav https://github.com/mickstar/Zoo-For-Zotero/blob/1e9f59c5098ce649fd9119ec8bb4828cc68055d6/app/src/main/java/com/mickstarify/zooforzotero/ZoteroAPI/Webdav.kt#L206
and 10 minutes here for Zotero servers https://github.com/mickstar/Zoo-For-Zotero/blob/1e9f59c5098ce649fd9119ec8bb4828cc68055d6/app/src/main/java/com/mickstarify/zooforzotero/ZoteroAPI/ZoteroAPI.kt#L69
Maybe the webdav timeout could be increased for writing as uploading on a poor internet connection can take minutes for large PDF ?