MCPcopy Create free account
hub / github.com/apache/impala / CreateSocket

Method CreateSocket

be/src/rpc/thrift-client.cc:129–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129Status ThriftClientImpl::CreateSocket() {
130 if (!ssl_) {
131 socket_.reset(new TSocket(address_.hostname, address_.port));
132 } else {
133 try {
134 ssl_factory_->configureCiphers(FLAGS_ssl_cipher_list, FLAGS_tls_ciphersuites,
135 disable_tls12_);
136 ssl_factory_->loadTrustedCertificates(FLAGS_ssl_client_ca_certificate.c_str());
137 socket_ = ssl_factory_->createSocket(address_.hostname, address_.port);
138 } catch (const TException& e) {
139 return Status(TErrorCode::SSL_SOCKET_CREATION_FAILED, e.what());
140 }
141 }
142 if (socket_ != nullptr) {
143 // ThriftClient is used for internal cluster communication, so we use
144 // ThriftInternalRpcMaxMessageSize().
145 SetMaxMessageSize(socket_.get(), ThriftInternalRpcMaxMessageSize());
146 }
147
148 return Status::OK();
149}
150
151}

Callers

nothing calls this directly

Calls 8

SetMaxMessageSizeFunction · 0.85
OKFunction · 0.85
configureCiphersMethod · 0.80
createSocketMethod · 0.80
resetMethod · 0.65
getMethod · 0.65
StatusClass · 0.50

Tested by

no test coverage detected