Skip to content

Add 30 second timeout to CurlAgent - #308

Open
Tatsh wants to merge 2 commits into
vitalif:masterfrom
Tatsh:curl-timeout
Open

Tatsh wants to merge 2 commits into
vitalif:masterfrom
Tatsh:curl-timeout

Conversation

@Tatsh

@Tatsh Tatsh commented Feb 19, 2020

Copy link
Copy Markdown

Resolves #306

@Tatsh Tatsh changed the title Add 30 second timeout option to CurlAgent Add 30 second timeout to CurlAgent Feb 19, 2020
@Heiko-L

Heiko-L commented Oct 5, 2020

Copy link
Copy Markdown

That would also timeout when syncing large files, am I right?

@Tatsh

Tatsh commented Oct 5, 2020

Copy link
Copy Markdown
Author

I am not sure what the behaviour is now since I haven't had corrupted files transfer with this patch. I've transferred multi-GB files with this patch enabled.

I'll have to check again on my machine with a large file.

@Tatsh

Tatsh commented Oct 5, 2020 •

Copy link
Copy Markdown
Author

Ran my patched version (built locally) with a 26.3 GiB file and it works. This took much longer than 30 seconds to upload. I verified the checksums of the file after re-downloading it from Drive via web browser.

The issue I was having before was that on macOS it would hang forever if anything went wrong with the connection, which was bad for timed jobs. This solved the issue. But now on macOS the #307 PR code should be used instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS: sometimes hangs in CurlAgent::ExecCurl

2 participants