if (timeOut > 0)
return Channels.pipeline(
// new GameBytesCounter(),
// new GameEventCounter(),
new ReadTimeoutHandler(timeoutHandler, timeOut), // timeout断开连接
new FlashCrossDomainDecoder(), new GameDecoder(maxReadSize, 0, GameBufferFactory.getReadHeaderSize(), 0, readOffset),
new GameEncoder(),
new GameUpStreamer());
else {
return Channels.pipeline(
new FlashCrossDomainDecoder(),
new GameDecoder(maxReadSize, 0, GameBufferFactory.getReadHeaderSize(), 0, readOffset),
new GameEncoder(), new GameUpStreamer());
}
}