MXS-1550 Add net_write_timeout paramater for service
net_write_timeout is used to timeout writes take too long.
This commit is contained in:
@ -158,6 +158,7 @@ extern const char CN_MONITOR_INTERVAL[];
|
||||
extern const char CN_MONITORS[];
|
||||
extern const char CN_MS_TIMESTAMP[];
|
||||
extern const char CN_NAME[];
|
||||
extern const char CN_NET_WRITE_TIMEOUT[];
|
||||
extern const char CN_NON_BLOCKING_POLLS[];
|
||||
extern const char CN_OPERATION[];
|
||||
extern const char CN_OPTIONS[];
|
||||
|
||||
@ -194,6 +194,7 @@ struct DCB : public MXB_POLL_DATA
|
||||
void* authenticator_data = nullptr;/**< The authenticator data for this DCB */
|
||||
DCB_CALLBACK* callbacks = nullptr; /**< The list of callbacks for the DCB */
|
||||
int64_t last_read = 0; /**< Last time the DCB received data */
|
||||
int64_t last_write = 0; /**< Last time the DCB sent data */
|
||||
struct SERVER* server = nullptr; /**< The associated backend server */
|
||||
SSL* ssl = nullptr; /**< SSL struct for connection */
|
||||
bool ssl_read_want_read = false;
|
||||
@ -285,7 +286,7 @@ int dcb_accept_SSL(DCB* dcb);
|
||||
int dcb_connect_SSL(DCB* dcb);
|
||||
int dcb_listen(DCB* listener, const char* config);
|
||||
void dcb_enable_session_timeouts();
|
||||
void dcb_process_idle_sessions(int thr);
|
||||
void dcb_process_timeouts(int thr);
|
||||
|
||||
/**
|
||||
* @brief Append a buffer the DCB's readqueue
|
||||
|
||||
@ -126,6 +126,7 @@ public:
|
||||
* to escape at least the underscore
|
||||
* character. */
|
||||
int64_t conn_idle_timeout; /**< Session timeout in seconds */
|
||||
int64_t net_write_timeout; /**< Write timeout in seconds */
|
||||
char weightby[MAX_SERVICE_WEIGHTBY_LEN]; /**< Service weighting parameter name
|
||||
* */
|
||||
bool retry_start; /**< If starting of the service should
|
||||
|
||||
Reference in New Issue
Block a user