Skip to content

Commit 1723aa3

Browse files
author
Yogesh Gaikwad
committed
Add missing change from the backport of #33744
Add missing change while backporting #33744 to fix failing test Netty4SizeHeaderFrameDecoderTests Closes #33728
1 parent 0a88601 commit 1723aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/transport/TcpTransport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ private BytesReference buildMessage(long requestId, byte status, Version nodeVer
10401040
* a ping message and has no payload ie. isn't a real user level message.
10411041
*
10421042
* @throws IllegalStateException if the message is too short, less than the header or less that the header plus the message size
1043-
* @throws HttpOnTransportException if the message has no valid header and appears to be a HTTP message
1043+
* @throws HttpOnTransportException if the message has no valid header and appears to be an HTTP message
10441044
* @throws IllegalArgumentException if the message is greater that the maximum allowed frame size. This is dependent on the available
10451045
* memory.
10461046
*/
@@ -1061,7 +1061,7 @@ public static boolean validateMessageHeader(BytesReference buffer) throws IOExce
10611061
bufferStartsWith(buffer, offset, "PATCH ") ||
10621062
bufferStartsWith(buffer, offset, "TRACE ")) {
10631063

1064-
throw new HttpOnTransportException("This is not a HTTP port");
1064+
throw new HttpOnTransportException("This is not an HTTP port");
10651065
}
10661066

10671067
// we have 6 readable bytes, show 4 (should be enough)

0 commit comments

Comments
 (0)