Here is my server:
EventLoopGroup bossGroup = new NioEventLoopGroup(1); // (1)
//EventLoopGroup.shutdownGracefully();
EventLoopGroup workerGroup = new NioEventLoopGroup(2);
try {
ServerBootstrap b = new ServerBootstrap(); // (2)
b.group(bossGroup, workerGroup)
.channel(NioServerSocketChannel.class) // (3)
.childHandler(new ChannelInitializer<SocketChannel>() { // (4)
@Override
public void initChannel(SocketChannel ch) throws Exception
{
dshstore.add(new DiscardServerHandler(t1));
ch.pipeline().addLast(dshstore.get(maxdshstore));
maxdshstore++;
System.out.println("MAXDSHSTORE"+Integer.toString(maxdshstore));
shstore=ch;
}
})
.option(ChannelOption.SO_BACKLOG, 128) // (5)
.childOption(ChannelOption.SO_KEEPALIVE, true); // (6)
ChannelFuture f = b.bind(port).sync(); // (7)
// f.channel().closeFuture().sync();
wildloop();
} finally {
workerGroup.shutdownGracefully();
bossGroup.shutdownGracefully();
}
I would send a packet that looks like this:
00567BMHOZ.3d\J-eU|.0tXaA{.1v-f.6RD1H.2VPKV~]F1z.6Wv]Q.1sPU_o{U(_jP.0{\bCkoQRxa+JN.1c.0e96WD|~W.2J7[=k@x_Ds:CMuS.08P=NNF*(iURy1I;N|2jp.3]9G.5fS9Yx~G.3sE.0.41nbvAIA.4}Xoi=b6.6~.6CCVS2Lno[P_L*9Nsl|MzR.2xH;[email protected]~R8PB.5O[=YaU.3.3UM.1].3.0EKb|n8(p$sc[{$Gb$aK?.1b-ei$A6.5,@Q\Tu/I*88.51G,QEiRXthFbR@jC\GRw,YM5ng7m0Il.0HB+IiF.1USR(pKhi.2$qw=ECygrMPg8pX^JY/QF0[6.3.2\@@u.5j]No.35)gwhz(:?.2+|=\[1;K/V.1Zl^}Esci{2GRkae$y9;c;pHGBEs}(AHoxl.4CjYi[Dmnscf_.2p.2)RQF7H7.5829BLG1b9+//^BW+Vs$IX].0zY;V2*ad6qjnHdXn|aLwei)z/b|.1?$oB.6z,4p6-trhSYa/j/5r.6.39X1EK~ZOmI?701LBY,.5uHN_{9.0$/n2L)
I would receive a packet that looks like this:
00567BMHOZ.3d\J-eU|.0tXaA{.1v-f.6RD1H.2VPKV~]F1z.6Wv]Q.1sPU_o{U(_jP.0{\bCkoQRxa+JN.1c.0e96WD|~W.2J7[=k@x_Ds:CMuS.08P=NNF*(iURy1I;N|2jp.3]9G.5fS9Yx~G.3sE.0.41nbvAIA.4}Xoi=b6.6~.6CCVS2Lno[P_L*9Nsl|MzR.2xH;[email protected]~R8PB.5O[=YaU.3.3UM.1].3.0EKb|n8(p$sc[{$Gb$aK?.1b-ei$A6.5,@Q\Tu/I*88.51G,QEiRXthFbR@jC\GRw,YM5ng7m0Il.0HB+IiF.1USR(pKhi.2$qw=ECygrMPg8pX^JY/QF0[6.3.2\@@u.5j]No.35)gwhz(:?.2+|=\[1;K/V.1Zl^}Esci{2GRkae$y9;c;pHGBEs}(AHoxl.4CjYi[Dmnscf_.2p.2)RQF7H7.5829BLG1b9+//^BW+Vs$IX].0zY;V2*ad6qjnHdXn|aLwei)z
Notice how the received packet doesn't have:
/b|.1?$oB.6z,4p6-trhSYa/j/5r.6.39X1EK~ZOmI?701LBY,.5uHN_{9.0$/n2L)
On Monday, April 3, 2017 at 3:58:41 AM UTC-4, [email protected] wrote:
>
> Hello,
>
> I believe I discovered a 500 byte bottle neck between Adobe Air and my
> Netty server.
> I tried splitting my packets up into smaller amounts, but sending them
> rapidly after each other
> has the same effect as sending it all at once.
>
> I can do a work around of waiting for .5 seconds between packets, but I
> don't think this is the proper way.
>
> What is the proper way to read a long packet by a single user when many
> users are sending packets?
> I can id my user, but sending packets rapidly means it is the same as me
> trying one giant packet.
>
> ,Jim
--
You received this message because you are subscribed to the Google Groups
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/netty/05d7ba8f-ce99-4722-8649-e9374b9793ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.