Skip to content
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

XrdTls: XrdTlsTempCA - Refactored CASet and CRLSet to open the output file only once before the processing #2075

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

ccaffy
Copy link
Contributor

@ccaffy ccaffy commented Aug 23, 2023

This PR is coming from the PR #2073.

The Maintenance thread creates bundle CA and CRL files. Before this modification, the output files created by the maintenance were open and closed for each CA and CRL read. It is not the case anymore. There is only one open at the beginning of the processing and one close at the end.

Copy link
Member

@abh3 abh3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, this is rather an extensive charge *though for the better). I can inly assume it has been tested ad nauseum. So, if you confirm that is the case I will approve.

@amadio amadio added this to the 5.6.2 milestone Aug 23, 2023
@ccaffy
Copy link
Contributor Author

ccaffy commented Aug 23, 2023

Well, this is rather an extensive charge *though for the better). I can inly assume it has been tested ad nauseum. So, if you confirm that is the case I will approve.

It's just using RAII to open the file in the constructor and close it when the object is destroyed. I tested it and got no issue. Used lsof -t on the concatenated CRL and CA files, with no output --> everything looks good to me ;)

@abh3
Copy link
Member

abh3 commented Aug 23, 2023

Thanks for confirming that :-)

Copy link
Member

@abh3 abh3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't see anything wrong here. This is a good improvement!

@amadio amadio merged commit af465e2 into xrootd:devel Aug 24, 2023
14 checks passed
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.

None yet

3 participants