|
@@ -3,6 +3,7 @@ package com.jpsoft.smart.lapi;
|
|
|
import com.jpsoft.smart.lapi.handler.HeartReportHandler;
|
|
|
import com.jpsoft.smart.lapi.handler.ParseRequestHandler;
|
|
|
import com.jpsoft.smart.lapi.handler.PersonVerificationHandler;
|
|
|
+import com.jpsoft.smart.lapi.handler.TextDecodeHandler;
|
|
|
import io.netty.bootstrap.ServerBootstrap;
|
|
|
import io.netty.channel.Channel;
|
|
|
import io.netty.channel.ChannelFuture;
|
|
@@ -50,10 +51,10 @@ public class LapiApplication implements CommandLineRunner {
|
|
|
.childHandler(new ChannelInitializer(){
|
|
|
@Override
|
|
|
protected void initChannel(Channel channel) throws Exception {
|
|
|
-// channel.pipeline().addLast(textDecodeHandler);
|
|
|
+// channel.pipeline().addLast(new TextDecodeHandler());
|
|
|
// channel.pipeline().addLast(new HttpRequestDecoder());
|
|
|
channel.pipeline().addLast(new HttpServerCodec());
|
|
|
- channel.pipeline().addLast(new HttpObjectAggregator(2048));
|
|
|
+ channel.pipeline().addLast(new HttpObjectAggregator(2048*10000));
|
|
|
channel.pipeline().addLast(new ParseRequestHandler());
|
|
|
channel.pipeline().addLast(heartReportHandler);
|
|
|
channel.pipeline().addLast(personVerificationHandler);
|