Closed esindril closed 1 year ago
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.
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]