26#ifndef ROUTING_CLASSIC_CONNECT_INCLUDED
27#define ROUTING_CLASSIC_CONNECT_INCLUDED
const MysqlRoutingClassicConnectionBase * connection() const
Definition: processor.h:78
Definition: classic_connect.h:37
stdx::expected< Processor::Result, std::error_code > init_endpoint()
Definition: classic_connect.cc:320
std::chrono::steady_clock::time_point connect_started_
Definition: classic_connect.h:113
net::ip::tcp::resolver::results_type endpoints_
Definition: classic_connect.h:101
stdx::expected< Processor::Result, std::error_code > error()
Definition: classic_connect.cc:1002
server_protocol_type::endpoint server_endpoint_
Definition: classic_connect.h:97
Stage
Definition: classic_connect.h:53
stdx::expected< Processor::Result, std::error_code > connect_finish()
Definition: classic_connect.cc:743
Destinations & destinations_
Definition: classic_connect.h:99
TraceEvent * trace_event_socket_from_pool_
Definition: classic_connect.h:118
stdx::expected< Processor::Result, std::error_code > init_destination()
Definition: classic_connect.cc:140
stdx::expected< Processor::Result, std::error_code > resolve()
Definition: classic_connect.cc:231
TraceEvent * trace_event_connect_
Definition: classic_connect.h:116
std::function< void(const classic_protocol::message::server::Error &err)> on_error_
Definition: classic_connect.h:111
stdx::expected< Processor::Result, std::error_code > from_pool()
Definition: classic_connect.cc:394
net::ip::tcp::resolver::results_type::iterator endpoints_it_
Definition: classic_connect.h:102
Stage stage_
Definition: classic_connect.h:92
bool all_quarantined_
Definition: classic_connect.h:104
void stage(Stage stage)
Definition: classic_connect.h:71
bool is_destination_good(const std::string &hostname, uint16_t port) const
Definition: classic_connect.cc:886
ConnectProcessor(MysqlRoutingClassicConnectionBase *conn, std::function< void(const classic_protocol::message::server::Error &err)> on_error, TraceEvent *parent_event)
Definition: classic_connect.h:39
std::vector< std::pair< std::string, std::error_code > > connect_errors_
Definition: classic_connect.h:108
stdx::expected< Processor::Result, std::error_code > connected()
Definition: classic_connect.cc:971
net::io_context & io_ctx_
Definition: classic_connect.h:94
stdx::expected< Processor::Result, std::error_code > init_connect()
Definition: classic_connect.cc:330
TraceEvent * parent_event_
Definition: classic_connect.h:115
Destinations::iterator destinations_it_
Definition: classic_connect.h:100
Stage stage() const
Definition: classic_connect.h:72
stdx::expected< Processor::Result, std::error_code > next_destination()
Definition: classic_connect.cc:903
stdx::expected< Processor::Result, std::error_code > process() override
Definition: classic_connect.cc:68
TraceEvent * trace_event_socket_connect_
Definition: classic_connect.h:117
std::error_code destination_ec_
Definition: classic_connect.h:105
net::ip::tcp::resolver resolver_
Definition: classic_connect.h:96
void assign_server_side_connection_after_pool(ConnectionPool::ServerSideConnection server_conn)
Definition: classic_connect.cc:364
stdx::expected< Processor::Result, std::error_code > next_endpoint()
Definition: classic_connect.cc:837
stdx::expected< Processor::Result, std::error_code > connect()
Definition: classic_connect.cc:564
A forward iterable container of destinations.
Definition: destination.h:107
typename container_type::iterator iterator
Definition: destination.h:111
Definition: classic_connection_base.h:56
a processor base class with helper functions.
Definition: processor.h:91
Definition: io_context.h:61
Definition: internet.h:678
Definition: internet.h:542
const_iterator iterator
Definition: internet.h:550
Definition: internet.h:608
TCP protocol.
Definition: internet.h:1155
Definition: expected.h:286
borrowable::message::server::Error< false > Error
Definition: classic_protocol_message.h:1411
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:908
const char * begin(const char *const c)
Definition: base64.h:44
Definition: gcs_xcom_synode.h:64
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:33
Definition: trace_span.h:35