Skip to content

clean direct buffer#150

Merged
stevehu merged 2 commits intonetworknt:masterfrom
kuibot:master
Dec 12, 2024
Merged

clean direct buffer#150
stevehu merged 2 commits intonetworknt:masterfrom
kuibot:master

Conversation

@atmoshaman
Copy link
Copy Markdown
Contributor

clean direct buffer @stevehu

@stevehu
Copy link
Copy Markdown
Contributor

stevehu commented Oct 30, 2024

@atmoshaman Thanks a lot for the PR. I am trying to search other places direct buffers are used.

@stevehu stevehu merged commit 3d907de into networknt:master Dec 12, 2024
@stevehu
Copy link
Copy Markdown
Contributor

stevehu commented Dec 12, 2024

I was trying to figure out if any other places need to be updated but never got a chance. Merged it first to resolve the current issue. Thanks a lot for your help.

stevehu added a commit that referenced this pull request Dec 26, 2024
@stevehu
Copy link
Copy Markdown
Contributor

stevehu commented Dec 26, 2024

I have to roll back the change as the request to the service will freeze forever. Do you know the root cause?

@atmoshaman
Copy link
Copy Markdown
Contributor Author

Sorry, The original code used IoCallback to deallocate DirectByteBuffer, The buffer could be freed while Undertow was still sending data, This premature deallocation caused the request to freeze.

@stevehu
Copy link
Copy Markdown
Contributor

stevehu commented Jan 21, 2025

OK. I understand now. Let's closely monitor the current code for while. Thanks.

@atmoshaman
Copy link
Copy Markdown
Contributor Author

atmoshaman commented Jan 21, 2025

OK. I understand now. Let's closely monitor the current code for while. Thanks.

#156 please review.

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