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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---