mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
MINOR: check: export wake_srv_chk()
We'll need it to centralize the stream connectors definitions.
This commit is contained in:
parent
026e8fb290
commit
f3ae34b67d
@ -82,6 +82,7 @@ void check_release_buf(struct check *check, struct buffer *bptr);
|
|||||||
const char *init_check(struct check *check, int type);
|
const char *init_check(struct check *check, int type);
|
||||||
void free_check(struct check *check);
|
void free_check(struct check *check);
|
||||||
void check_purge(struct check *check);
|
void check_purge(struct check *check);
|
||||||
|
int wake_srv_chk(struct stconn *cs);
|
||||||
|
|
||||||
int init_srv_check(struct server *srv);
|
int init_srv_check(struct server *srv);
|
||||||
int init_srv_agent_check(struct server *srv);
|
int init_srv_agent_check(struct server *srv);
|
||||||
|
@ -140,7 +140,6 @@ struct trace_source trace_check = {
|
|||||||
INITCALL1(STG_REGISTER, trace_register_source, TRACE_SOURCE);
|
INITCALL1(STG_REGISTER, trace_register_source, TRACE_SOURCE);
|
||||||
|
|
||||||
|
|
||||||
static int wake_srv_chk(struct stconn *cs);
|
|
||||||
struct data_cb check_conn_cb = {
|
struct data_cb check_conn_cb = {
|
||||||
.wake = wake_srv_chk,
|
.wake = wake_srv_chk,
|
||||||
.name = "CHCK",
|
.name = "CHCK",
|
||||||
@ -1016,7 +1015,7 @@ int httpchk_build_status_header(struct server *s, struct buffer *buf)
|
|||||||
* It returns 0 on normal cases, <0 if at least one close() has happened on the
|
* It returns 0 on normal cases, <0 if at least one close() has happened on the
|
||||||
* connection (eg: reconnect). It relies on tcpcheck_main().
|
* connection (eg: reconnect). It relies on tcpcheck_main().
|
||||||
*/
|
*/
|
||||||
static int wake_srv_chk(struct stconn *cs)
|
int wake_srv_chk(struct stconn *cs)
|
||||||
{
|
{
|
||||||
struct connection *conn;
|
struct connection *conn;
|
||||||
struct check *check = __cs_check(cs);
|
struct check *check = __cs_check(cs);
|
||||||
|
Loading…
Reference in New Issue
Block a user