drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sohami <...@git.apache.org>
Subject [GitHub] drill pull request #773: DRILL-4335: Apache Drill should support network enc...
Date Mon, 01 May 2017 19:47:51 GMT
Github user sohami commented on a diff in the pull request:

    https://github.com/apache/drill/pull/773#discussion_r113835839
  
    --- Diff: exec/rpc/src/main/java/org/apache/drill/exec/rpc/RpcConstants.java ---
    @@ -24,4 +24,29 @@ private RpcConstants(){}
     
       public static final boolean SOME_DEBUGGING = false;
       public static final boolean EXTRA_DEBUGGING = false;
    +
    +  // RPC Handler names
    +  public static final String TIMEOUT_HANDLER = "timeout-handler";
    +  public static final String PROTOCOL_DECODER = "protocol-decoder";
    +  public static final String PROTOCOL_ENCODER = "protocol-encoder";
    +  public static final String MESSAGE_DECODER = "message-decoder";
    +  public static final String HANDSHAKE_HANDLER = "handshake-handler";
    +  public static final String MESSAGE_HANDLER = "message-handler";
    +  public static final String EXCEPTION_HANDLER = "exception-handler";
    +  public static final String IDLE_STATE_HANDLER = "idle-state-handler";
    +  public static final String SASL_DECRYPTION_HANDLER = "sasldecryption-handler";
    +  public static final String SASL_ENCRYPTION_HANDLER = "saslencryption-handler";
    +  public static final String LENGTH_DECODER_HANDLER = "length-decoder";
    +  public static final String CHUNK_CREATION_HANDLER = "chunkcreation-handler";
    +
    +
    +
    +  // SASL RFC 2222/4422 allows only 3 octets to specify the length of maximum encoded
buffer each side can receive.
    +  // Hence the maximum buffer size is capped at 16Mb i.e. 0XFFFFFF bytes.
    +  public static final int MAX_WRAPPED_SIZE = 0XFFFFFF;
    +
    +  public static final int LENGTH_FIELD_OFFSET = 0;
    +  public static final int LENGTH_FIELD_LENGTH = 4;
    --- End diff --
    
    Borrowed the terminology from `LengthFieldBasedFrameDecoder` which indicates the length
of length field.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message