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

Fix CPU spinning issue #2191

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Fix CPU spinning issue #2191

merged 1 commit into from
Jun 17, 2024

Conversation

malakaganga
Copy link
Contributor

Purpose

When back-end connection is closed (RST sent) while handling the response if the protocol state is already marked as RESPONSE_DONE in the TargetHandler exception patch we have omitted to close the connection so the connection remain intact and it will continue to hit the inputReady method and when trying to read from the SSLIOSession it will throws a I/O Exception but since in the exception patch we are omitting the error this will loop.
Fixed this issue by moving the connection close logic to finally block.

Fixes: wso2/micro-integrator#3363

When back-end connection is closed (RST sent) while handling the
response if the protocol state is already marked as RESPONSE_DONE in the
TargetHandler exception patch we have omitted to close the connection so the connection
remain intact and it will continue to hit the inputReady method and
when trying to read from the SSLIOSession it will throws a I/O Exception
but since in the exception patch we are omitting the error this will
loop.
Fixed this issue by moving the connection close logic to finally block.

Fixes: wso2/micro-integrator#3363
@malakaganga malakaganga merged commit 4961527 into wso2:master Jun 17, 2024
2 checks passed
shilmyhasan pushed a commit to shilmyhasan/wso2-synapse-1 that referenced this pull request Aug 28, 2024
…v183.x-full

Fixing issue in update Synapse Artifact flow
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.

CPU Spinning when there is an RST packet while serving the response [MI 4.x.x]
2 participants