Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/17369


Change subject: [rpc] add transport-specific info for RPC connections
......................................................................

[rpc] add transport-specific info for RPC connections

This patch adds the following information on RPC connections produced
by the /rpcz endpoint of the embedded webserver:
  * TCP maximum segment size
  * if applicable, TLS protocol version and cipher suite description
    used to negotiate the connection

I didn't add any tests, but I manually verified that kudu-master and
kudu-tserver output elements similar to the following in the
"inbound_connections" section at their '/rpcz' HTTP endpoint:

{
    "remote_ip": "10.17.240.17:49038",
    "state": "OPEN",
    "remote_user_credentials": "{username='aserbin'}",
    "socket_stats": {
        "rtt": 1875,
        "rttvar": 750,
        "snd_cwnd": 10,
        "total_retrans": 0,
        "send_queue_bytes": 0,
        "receive_queue_bytes": 0,
        "send_bytes_per_sec": 7722666
    },
    "transport_details": {
        "tcp": {
            "max_segment_size": 1448
        },
        "tls": {
            "protocol": "TLSv1.2",
            "cipher_suite": "ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA 
Enc=AESGCM(256) Mac=AEAD"
        }
    }
}

Change-Id: Ib712f98b93dd5ee12c2083467261af02863c18e8
---
M src/kudu/rpc/connection.cc
M src/kudu/rpc/connection.h
M src/kudu/rpc/rpc_introspection.proto
M src/kudu/security/openssl_util.cc
M src/kudu/security/openssl_util.h
M src/kudu/security/tls_socket.cc
M src/kudu/security/tls_socket.h
7 files changed, 120 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/69/17369/1
--
To view, visit http://gerrit.cloudera.org:8080/17369
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib712f98b93dd5ee12c2083467261af02863c18e8
Gerrit-Change-Number: 17369
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>

Reply via email to