GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — Make sure to always close input streams bound to responses by kwin · Pull Request #1970 · apache/maven-resolver Conversation
Member
Ensure all connections are closed when transporter is closed Add PUT IT where response contains body This closes #1964 Following this checklist to help us incorporate your
If your pull request is about ~20 lines of code you don't need to sign an To make clear that you license your contribution under
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
kwin
force-pushed
the
bugfix/consume-put-response
branch
3 times, most recently
from
53d6891 to
ab86f9c
Compare
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
kwin
force-pushed
the
bugfix/consume-put-response
branch
2 times, most recently
from
35d80f9 to
4998677
Compare
Ensure all connections are closed when transporter is closed. Add PUT IT where response contains body. This closes #1964
kwin
force-pushed
the
bugfix/consume-put-response
branch
from
4998677 to
99df910
Compare
kwin
marked this pull request as ready for review
gnodet
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Verdict: ✅ Approve — excellent fix for a real connection leak that could cause deadlocks in production. What's greatThe production fixes are correct and well-targeted:
Suggestions1. Null guard before Awaitility check ( The Awaitility assertion runs before the // Current: Awaitility.await().atMost(5, TimeUnit.SECONDS).until(() -> httpServer.getNumConnectedEndPoints() == 0); if (httpServer != null) { // Suggested — move inside the null guard: if (httpServer != null) { Awaitility.await().atMost(5, TimeUnit.SECONDS).until(() -> httpServer.getNumConnectedEndPoints() == 0); httpServer.stop(); httpServer = null; } 2. HTTP 204 with response body — may weaken the test ( The response body is written, then status is set to if (responseBodyForPut != null) { writeResponseBodyMessage(req, response, responseBodyForPut); response.setStatus(HttpServletResponse.SC_OK); } else { response.setStatus(HttpServletResponse.SC_NO_CONTENT); } Minor observations (no action needed)
CI: ⏳ All pending (just un-drafted). Production code changes are straightforward enough to review without CI, but will want to confirm all tests pass. Reviewed with AI assistance on behalf of @gnodet. This review was generated by an AI agent and may contain inaccuracies; please verify all suggestions before applying.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gnodet
added a commit
to gnodet/maven-resolver
that referenced
this pull request
gnodet
added a commit
to gnodet/maven-resolver
that referenced
this pull request
cstamas
approved these changes
gnodet
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Follow-up review (commit 2/2): ✅ All suggestions addressed — looks great.
No further comments. Reviewed with AI assistance on behalf of @gnodet. This review was generated by an AI agent and may contain inaccuracies; please verify all suggestions before applying.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gnodet
added a commit
to gnodet/maven-resolver
that referenced
this pull request
gnodet
added a commit
to gnodet/maven-resolver
that referenced
this pull request
Uh oh!
There was an error while loading. Please reload this page.
gnodet
added a commit
to gnodet/maven-resolver
that referenced
this pull request
gnodet
added a commit
to gnodet/maven-resolver
that referenced
this pull request
This was referenced
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page. AssigneesLabels
bug
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. JettyTransporter and JdkTransporter do not consume response body of PUT potentially leading to dangling connections or deadlocksUh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |