0
작은 netty 서버 프로그램을 작성했습니다. 모든 휴대 전화에서 작동하지만 서버가 안드로이드 모바일 (클라이언트)에 대해서만 RST 요청을 보냅니다. 그리고 어떤 때는 잘 작동하지만 어떤 때는 문제가 있습니다.연결하려고하면 Netty 서버가 안드로이드 클라이언트에 RST 요청을 보냅니다.
도와주세요.
ChannelFactory factory = new NioServerSocketChannelFactory(
Executors.newCachedThreadPool(),
Executors.newCachedThreadPool());
bootstrap = new ServerBootstrap(factory);
bootstrap.setPipelineFactory(new ChannelPipelineFactory() {
public ChannelPipeline getPipeline() {
// new SslHandler(getSSLEngine()),
return Channels.pipeline(
new MobileDecoder(),
new MobileChannelHandler(MobileMessageHandler
.getInstance()));
}
});
bootstrap.setOption("child.tcpNoDelay", true);
bootstrap.setOption("child.keepAlive", true);
bootstrap.bind(new InetSocketAddress(9083));
어디에 문제가 있습니까? 어떤 오류가 발생하고 있습니까? – ManseUK
단순히 연결되지 않음, 오류 없음. – Nagaraju