Skip to content

Commit 5496cc9

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 81e35f1 commit 5496cc9

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ private BytesReference buildMessage(long requestId, byte status, Version nodeVer
12951295
* a ping message and has no payload ie. isn't a real user level message.
12961296
*
12971297
* @throws IllegalStateException if the message is too short, less than the header or less that the header plus the message size
1298-
* @throws HttpOnTransportException if the message has no valid header and appears to be a HTTP message
1298+
* @throws HttpOnTransportException if the message has no valid header and appears to be an HTTP message
12991299
* @throws IllegalArgumentException if the message is greater that the maximum allowed frame size. This is dependent on the available
13001300
* memory.
13011301
*/
@@ -1316,7 +1316,7 @@ public static boolean validateMessageHeader(BytesReference buffer) throws IOExce
13161316
bufferStartsWith(buffer, offset, "PATCH ") ||
13171317
bufferStartsWith(buffer, offset, "TRACE ")) {
13181318

1319-
throw new HttpOnTransportException("This is not a HTTP port");
1319+
throw new HttpOnTransportException("This is not an HTTP port");
13201320
}
13211321

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

0 commit comments

Comments
 (0)