mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
Since the following patch, protocol API to update a connection TID affinity has been extended. commit 1a43b9f32c71267e3cb514aa70a13c75adb20742 MINOR: proto: extend connection thread rebind API The single callback set_affinity has been splitted in 3 different functions which are called at different stages during listener_accept(), depending on accept queue push success or not. However, the naming was rendered confusing by the usage of function prefix 1 and 2. Rename proto callback related to TID affinity update and use the following names : * bind_tid_prep * bind_tid_commit * bind_tid_reset This commit should probably be backported at least up to 3.0 with the above patch. This is because the fix was recently backported and it would allow to keep changes minimal between the two versions. It could even be backported up to 2.8 if there is no major conflict.
23 lines
772 B
C
23 lines
772 B
C
#ifndef _HAPROXY_PROTO_RHTTP_H
|
|
#define _HAPROXY_PROTO_RHTTP_H
|
|
|
|
#include <haproxy/connection-t.h>
|
|
#include <haproxy/listener-t.h>
|
|
#include <haproxy/receiver-t.h>
|
|
|
|
int rhttp_bind_receiver(struct receiver *rx, char **errmsg);
|
|
|
|
int rhttp_bind_listener(struct listener *listener, char *errmsg, int errlen);
|
|
void rhttp_enable_listener(struct listener *l);
|
|
void rhttp_disable_listener(struct listener *l);
|
|
int rhttp_suspend_listener(struct listener *l);
|
|
struct connection *rhttp_accept_conn(struct listener *l, int *status);
|
|
void rhttp_unbind_receiver(struct listener *l);
|
|
int rhttp_bind_tid_prep(struct connection *conn, int new_tid);
|
|
|
|
int rhttp_accepting_conn(const struct receiver *rx);
|
|
|
|
void rhttp_notify_preconn_err(struct listener *l);
|
|
|
|
#endif /* _HAPROXY_PROTO_RHTTP_H */
|