-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Curl timeout while retrieving IAM public key #114
Comments
I think this is very reasonable request. As all things, the 4 seconds was a tradeoff that was deliberately decided upon. But, now that we have the async interface, I think increasing the default timeout is reasonable. I will discuss with others, but I expect I can make this change next week. |
djw8605
added a commit
to djw8605/scitokens-cpp
that referenced
this issue
Apr 25, 2023
Off-by-one error. Fixes scitokens#114 Fixes OSPOOL-73
djw8605
added a commit
to djw8605/scitokens-cpp
that referenced
this issue
Apr 25, 2023
Off-by-one error. Fixes scitokens#114 Fixes OSPOOL-73
djw8605
added a commit
that referenced
this issue
Apr 26, 2023
Off-by-one error. Fixes #114 Fixes OSPOOL-73
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While using the latest released version of scitokens-cpp (1.0.0) we hit timeouts while trying to retrieve the public key for the configured IAM. In this case the IAM in question is
https://wlcg.cloud.cnaf.infn.it/
The corresponding trace in the logs is the following:
Below you can find the relevant part of the trace which throws the exception. [1]
While investigating this, modifyin the
default_timeout
used here [2] when doing the CURL requests from 4 to 10 seconds, reliably fixed out issues. Therefore, could the default value be a bit higher to accomodate such slow instances or at least be somehow configurable via the XrdSciTokens plug-in?Thanks!
[2] https://github.com/scitokens/scitokens-cpp/blob/master/src/scitokens_internal.h#L70
[1]
The text was updated successfully, but these errors were encountered: