Skip to content

JS-815 Use same WebSocket connection on each Sensor execution #5569

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

Merged
merged 2 commits into from
Jul 24, 2025
Merged

Conversation

vdiez
Copy link
Contributor

@vdiez vdiez commented Jul 23, 2025

JS-815

Part of

@vdiez vdiez requested a review from zglicz July 23, 2025 09:46
Copy link

Comment on lines +255 to +258
if (client != null && client.isOpen()) {
LOG.debug("WebSocket connection already established");
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we get to a case, like with dotnet, that they have concurrent calls to analyzeProject with different params? So that we actually have intertwining initLinter and actual analysis calls?

I think also you should be able to test this, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in principle, there is no concurrency at all. All sensors and modules are executed serially. But just want to play safe here.

@vdiez vdiez enabled auto-merge (squash) July 23, 2025 13:20
@vdiez vdiez merged commit d7b6e6f into master Jul 24, 2025
27 checks passed
@vdiez vdiez deleted the JS-815 branch July 24, 2025 08:13
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.

2 participants