Skip to content

Conversation

@golgetahir
Copy link
Contributor

@golgetahir golgetahir commented Nov 14, 2025

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
73.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

if (bsfFilterContextList.isEmpty())
{
writeHeader();
if (!exitIfCancelled())
Copy link

Choose a reason for hiding this comment

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

it seems like the cancellation check should not depend on bsfFilterContextList.isEmpty() check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mstyura agreed and updated. Though the check mechanisms there are just extra protective, the real reason behind the socket leak issue is that writeTrailer was not clearing resources when the header is not written yet so the root cause of the issue lies there. I have triggered the integration tests with the new commit and will share a build with you over slack when it passes.

Copy link

Choose a reason for hiding this comment

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

But why the writeHeader(); is still done in case connection may still be cancelled? Who will close it in such case if code goes to the writeHeader path?

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.

3 participants