Fix #160 - No response to write if server is using SslHandler and client is not
This commit is contained in:
parent
2f78b1abe0
commit
ee6a6e6cec
@ -608,7 +608,7 @@ public class SslHandler extends FrameDecoder
|
|||||||
buffer.readerIndex()) & 0x80) != 0 ? 2 : 3;
|
buffer.readerIndex()) & 0x80) != 0 ? 2 : 3;
|
||||||
int majorVersion = buffer.getUnsignedByte(
|
int majorVersion = buffer.getUnsignedByte(
|
||||||
buffer.readerIndex() + headerLength + 1);
|
buffer.readerIndex() + headerLength + 1);
|
||||||
if (majorVersion >= 2 && majorVersion < 10) {
|
if (majorVersion == 2 || majorVersion == 3) {
|
||||||
// SSLv2
|
// SSLv2
|
||||||
if (headerLength == 2) {
|
if (headerLength == 2) {
|
||||||
packetLength = (getShort(buffer, buffer.readerIndex()) & 0x7FFF) + 2;
|
packetLength = (getShort(buffer, buffer.readerIndex()) & 0x7FFF) + 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user