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 file uploads beyond MMAP_SEGMENT_SIZE #10793

Merged
merged 5 commits into from May 6, 2024
Merged

Fix file uploads beyond MMAP_SEGMENT_SIZE #10793

merged 5 commits into from May 6, 2024

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented May 3, 2024

The code path was not covered by tests and was broken.

I also replaced the ReentrantLock by a NonReentrantLock that is based on a Semaphore. This is because there are some semantic checks in Chunk that might not work with a reentrant lock (e.g. repeated deallocate calls could lead to ref count errors). But this is unrelated to the bug.

Fixes #10666

The code path was not covered by tests and was broken.

I also replaced the ReentrantLock by a NonReentrantLock that is based on a Semaphore. This is because there are some semantic checks in Chunk that might not work with a reentrant lock (e.g. repeated deallocate calls could lead to ref count errors). But this is unrelated to the bug.

Fixes #10666
@yawkat yawkat added the type: bug Something isn't working label May 3, 2024
@yawkat yawkat added this to the 4.4.9 milestone May 3, 2024
Copy link
Collaborator

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

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

You forgot the license

@yawkat yawkat requested a review from timyates May 6, 2024 07:43
Copy link

sonarcloud bot commented May 6, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
66.7% Coverage on New Code (required ≥ 70%)

See analysis details on SonarCloud

@yawkat yawkat merged commit aeaec05 into 4.4.x May 6, 2024
16 of 17 checks passed
@yawkat yawkat deleted the mmap-size branch May 6, 2024 11:12
sdelamo added a commit that referenced this pull request May 9, 2024
* Fix file uploads beyond MMAP_SEGMENT_SIZE
The code path was not covered by tests and was broken.

I also replaced the ReentrantLock by a NonReentrantLock that is based on a Semaphore. This is because there are some semantic checks in Chunk that might not work with a reentrant lock (e.g. repeated deallocate calls could lead to ref count errors). But this is unrelated to the bug.

Fixes #10666

* Update http-server-netty/src/main/java/io/micronaut/http/server/netty/NonReentrantLock.java

Co-authored-by: Sergio del Amo <sergio.delamo@softamo.com>

* make badssl more resilient to timeouts

* make badssl more resilient to timeouts

---------

Co-authored-by: Sergio del Amo <sergio.delamo@softamo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants