Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jiachun.fjc committed Apr 18, 2016
1 parent 47b7f79 commit 045f101
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@
public class ProtocolDecoder extends ReplayingDecoder<ProtocolDecoder.State> {

// 协议体最大限制, 默认5M
private static final int MAX_BODY_SIZE = SystemPropertyUtil.getInt("jupiter.protocol.max.body.size", 1024 * 1024 * 5);
private static final int MAX_BODY_SIZE = SystemPropertyUtil.getInt("jupiter.decoder.max.body.size", 1024 * 1024 * 5);

/**
* Cumulate {@link ByteBuf}s by add them to a CompositeByteBuf and so do no memory copy whenever possible.
* Be aware that CompositeByteBuf use a more complex indexing implementation so depending on your use-case
* and the decoder implementation this may be slower then just use the {@link #MERGE_CUMULATOR}.
*/
private static final boolean USE_COMPOSITE_BUF = SystemPropertyUtil.getBoolean("jupiter.protocol.decoder.composite.buf", false);
private static final boolean USE_COMPOSITE_BUF = SystemPropertyUtil.getBoolean("jupiter.decoder.composite.buf", false);

public ProtocolDecoder() {
super(State.HEADER_MAGIC);
Expand Down

0 comments on commit 045f101

Please sign in to comment.