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

concord-server: replace synchronized with locks #1060

Merged
merged 3 commits into from
Jan 5, 2025
Merged

concord-server: replace synchronized with locks #1060

merged 3 commits into from
Jan 5, 2025

Conversation

ibodrov
Copy link
Collaborator

@ibodrov ibodrov commented Jan 2, 2025

In preparation for virtual thread support.

brig
brig previously approved these changes Jan 3, 2025
@ibodrov ibodrov marked this pull request as ready for review January 3, 2025 18:26
private final SSLSocketFactory delegate;

public static synchronized SocketFactory getDefault() {
return new TrustingSslSocketFactory();
public static SocketFactory getDefault() {
Copy link
Contributor

Choose a reason for hiding this comment

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

any idea why this method was synchronized?

Copy link
Collaborator Author

@ibodrov ibodrov Jan 4, 2025

Choose a reason for hiding this comment

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

any idea why this method was synchronized?

I vaguely remember having issues with some SslSocketFactories that fail in constructors when created concurrently. I don't think that we have any tests that use LDAP over SSL, I'll try to test it manually -- see if perhaps we can remove the synchronization.

@brig brig merged commit 2dfca4f into master Jan 5, 2025
4 checks passed
@brig brig deleted the ib/no-sync branch January 5, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants