delete unuse code
parent
f23d6924fd
commit
ad24f4c7ed
|
@ -17,7 +17,6 @@ public class TeaDecoder extends ByteToMessageDecoder {
|
||||||
@Override
|
@Override
|
||||||
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {
|
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {
|
||||||
String secret_key = "";
|
String secret_key = "";
|
||||||
System.out.println("the object" + in + Thread.currentThread().getName() + "------------- " +ctx);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
in.markReaderIndex();
|
in.markReaderIndex();
|
||||||
|
@ -25,7 +24,6 @@ public class TeaDecoder extends ByteToMessageDecoder {
|
||||||
for (int i = 0; i < buf.length; i ++) {
|
for (int i = 0; i < buf.length; i ++) {
|
||||||
if (!in.isReadable()) {
|
if (!in.isReadable()) {
|
||||||
in.resetReaderIndex();
|
in.resetReaderIndex();
|
||||||
System.out.println("------");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue