dsc client HTTP Timeout
When joex and co. are too busy, the HTTP upload(s) of the dsc client (upload and watch) can time out. This behavior leads to missing documents either by skipping the upload(s) or by aborting the whole process of uploading multiple files.
A workaround can be used by using CURL and using the parameters "--max-time" and/or "--connect-timeout"
Further info for CURL: https://unix.stackexchange.com/questions/94604/does-curl-have-a-timeout
Further info for uploading to doscpell: https://docspell.org/docs/webapp/uploading/
Regardless of how timeouts are handled, the dsc tool should ensure three things:
- If it returns a 0 exit code, the document was uploaded;
- If the document fails to upload, a non-0 exit code should be used.
- The chance of a successful upload and a non-0 exit code needs to be eliminated.
Harder than it sounds, I know ;)
Is the dsc tool returning 0 in case of failure?
I'll make sure to take note when I encounter this.