Closed tongtaodragon closed 11 months ago
Protocol Version is the first byte of your application layer network frame. Usually it is 1 (for BoltV1) and 2 for (BoltV2 protocol). If the first byte is 3 , bolt can not find the correspond protocol, so you will see this error .
There may be two common causes of this problem :
协议版本是应用层网络帧的第一个字节。通常为 1(对于 BoltV1)和 2(对于 BoltV2 协议)。如果第一个字节是 3,bolt 找不到对应的协议,那么你会看到这个错误。
此问题可能有两个常见原因:
- 一些未知的客户端向您的端口发送错误的数据包。
- 解码器没有消耗掉一个数据包中的所有数据,因此存储器中留下了一些错误的数据。解码器接下来消耗数据时,读取到了错误的数据。
赞
Your question
In our environment, warning message appeared in connection-event log file as below. Unknown protocol code: [ProtocolVersion{version=[3]}] while decode in ProtocolDecoder.] Why report this warning message? What possible kind of situations will trigger this warning message?
Environment
SOFABolt version: 1.6.5
JVM version (e.g.
java -version
): java version "1.8.0_331" Java(TM) SE Runtime Environment (build 1.8.0_331-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.331-b09, mixed mode)OS version (e.g.
uname -a
): Server: Linux host1 4.18.0-193.el8.x86_64 #1 SMP Mon Jun 22 15:09:41 UTC 2020 x86_64 x86_64 x86_64 GNU/LinuxClient: Windows 7