Skip to content

Netty: Remove TODO comment that is no longer needed #31248

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

Merged
merged 1 commit into from
Apr 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,6 @@ protected HttpRequestMessageImpl getRequestImpl() {
setStartTime();
HttpRequestMessageImpl req = getMyRequest();

// if applicable set the HTTP/2 specific content length
//TODO: Netty H2
if (!getHttpConfig().useNetty() && myLink instanceof H2HttpInboundLinkWrap) {
int len = ((H2HttpInboundLinkWrap) myLink).getH2ContentLength();
if (len != -1) {
Expand Down Expand Up @@ -945,7 +943,7 @@ public VirtualConnection sendRawResponseBody(WsByteBuffer[] body, InterChannelCa
* @return HttpInvalidMessageException (null if valid)
*/
protected HttpInvalidMessageException checkResponseValidity() {

// if this wasn't a HEAD request, then check to make sure we sent the
// same amount of bytes that were in the content-length header
if (!MethodValues.HEAD.equals(getRequest().getMethodValue())) {
Expand Down Expand Up @@ -2125,7 +2123,7 @@ public void setStartTime() {

if (Objects.nonNull(nettyContext)) {
nettyContext.channel().attr(NettyHttpConstants.REQUEST_START_TIME).set(this.startTime);
}
}
}
}
}
Expand Down Expand Up @@ -2195,7 +2193,7 @@ public void setRemoteUser(String remoteUser) {
}

public String getRemoteUser() {
return this.remoteUser;
return this.remoteUser;
}

public void initForwardedValues() {
Expand Down