26#ifndef ROUTING_CLASSIC_FORWARDING_PROCESSOR_INCLUDED
27#define ROUTING_CLASSIC_FORWARDING_PROCESSOR_INCLUDED
36 using Processor::Processor;
53 bool noflush =
false);
64 bool noflush =
false);
SSL aware socket buffers.
Definition: channel.h:64
protocol state of a classic protocol connection.
Definition: classic_connection_base.h:52
a processor base class with helper functions.
Definition: forwarding_processor.h:34
void reconnect_error(classic_protocol::message::server::Error err)
set the reconnect error.
Definition: forwarding_processor.h:111
classic_protocol::message::server::Error reconnect_error() const
get the reconnect error.
Definition: forwarding_processor.h:118
stdx::expected< Processor::Result, std::error_code > mysql_reconnect_start()
reconnect a mysql classic connection.
Definition: forwarding_processor.cc:125
stdx::expected< Processor::Result, std::error_code > socket_reconnect_start()
reconnect a socket.
Definition: forwarding_processor.cc:115
stdx::expected< bool, std::error_code > pool_server_connection()
move the server connection to the pool.
Definition: forwarding_processor.cc:82
stdx::expected< Result, std::error_code > forward_client_to_server(bool noflush=false)
forward the current packet from the client-side to the server-side.
Definition: forwarding_processor.cc:48
stdx::expected< Processor::Result, std::error_code > reconnect_send_error_msg(Channel *src_channel, ClassicProtocolState *src_protocol)
send a Error msg based on the reconnect_error().
Definition: forwarding_processor.cc:164
classic_protocol::message::server::Error reconnect_error_
reconnect error set by lazy_reconnect_start().
Definition: forwarding_processor.h:126
stdx::expected< Result, std::error_code > forward_server_to_client(bool noflush=false)
forward the current packet from the server-side to the client-side.
Definition: forwarding_processor.cc:40
stdx::expected< Result, std::error_code > recv_server_failed_and_check_client_socket(std::error_code ec)
handle error-code of a failed receive() from the server-socket and check the status of the client soc...
Definition: forwarding_processor.cc:136
a processor base class with helper functions.
Definition: processor.h:89
Definition: expected.h:944
borrowable::message::server::Error< false > Error
Definition: classic_protocol_message.h:1399
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:910