|
@@ -48,6 +48,8 @@ public class NettyServer {
|
|
|
@Value("${system.udp-server.use-multithread}")
|
|
|
private Boolean useMultiThread;
|
|
|
|
|
|
+ @Value("${debug.justReceivePacket}")
|
|
|
+ private Boolean isJustReceivePacket;
|
|
|
|
|
|
private DelayQueue<BasePackage> sendingQueue = new DelayQueue<>();
|
|
|
|
|
@@ -63,6 +65,7 @@ public class NettyServer {
|
|
|
group = useMultiThread ? new EpollEventLoopGroup() : new NioEventLoopGroup();
|
|
|
|
|
|
log.info("开始启动 Netty Server,host:{} port: {}", host, port);
|
|
|
+ log.info("Netty-Server isJustReceivePacket:{}", isJustReceivePacket);
|
|
|
Bootstrap bootstrap = new Bootstrap();
|
|
|
|
|
|
Encoder encoder = new Encoder();
|