docspell icon indicating copy to clipboard operation
docspell copied to clipboard

dsc client HTTP Timeout

Open Snify89 opened this issue 3 years ago • 3 comments

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/

Snify89 avatar Jul 06 '22 08:07 Snify89

Regardless of how timeouts are handled, the dsc tool should ensure three things:

  1. If it returns a 0 exit code, the document was uploaded;
  2. If the document fails to upload, a non-0 exit code should be used.
  3. The chance of a successful upload and a non-0 exit code needs to be eliminated.

Harder than it sounds, I know ;)

madduck avatar Sep 08 '23 21:09 madduck

Is the dsc tool returning 0 in case of failure?

eikek avatar Sep 09 '23 09:09 eikek

I'll make sure to take note when I encounter this.

madduck avatar Sep 10 '23 06:09 madduck