You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Runtime platform environment
Linux
RocketMQ version
develop branch
JDK Version
1.8
Describe the Bug
When both haproxy and tls protocols are enabled on the server at the same time, the received packet is first haproxy protocol, then tls protocol.
the ssl handshake uses the first byte to determine if it is the first package of tls handshake now. However, the read index is shifted due to the previous haproxy protocol parsing, so it needs to be changed to judge the first byte on the current read index.
Steps to Reproduce
The server opens both haproxy and tls protocols at the same time.
The client sends messages using tls.
The message sending fails and the connection cannot be established.
What Did You Expect to See?
Message sending works normally.
What Did You See Instead?
Message sending fails.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Before Creating the Bug Report
I found a bug, not just asking a question, which should be created in GitHub Discussions.
I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.
I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Runtime platform environment
Linux
RocketMQ version
develop branch
JDK Version
1.8
Describe the Bug
When both haproxy and tls protocols are enabled on the server at the same time, the received packet is first haproxy protocol, then tls protocol.
the ssl handshake uses the first byte to determine if it is the first package of tls handshake now. However, the read index is shifted due to the previous haproxy protocol parsing, so it needs to be changed to judge the first byte on the current read index.
Steps to Reproduce
What Did You Expect to See?
Message sending works normally.
What Did You See Instead?
Message sending fails.
Additional Context
No response
The text was updated successfully, but these errors were encountered: