mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 06:41:32 +02:00
MINOR: listeners: Change listener_full and limit_listener into private functions
These functions are only used in listener_accept. So there is no need to export them.
This commit is contained in:
parent
ae459fd206
commit
5580ba2e11
@ -53,11 +53,6 @@ int pause_listener(struct listener *l);
|
||||
*/
|
||||
int resume_listener(struct listener *l);
|
||||
|
||||
/* Marks a ready listener as full so that the session code tries to re-enable
|
||||
* it upon next close() using resume_listener().
|
||||
*/
|
||||
void listener_full(struct listener *l);
|
||||
|
||||
/* This function adds all of the protocol's listener's file descriptors to the
|
||||
* polling lists when they are in the LI_LISTEN state. It is intended to be
|
||||
* used as a protocol's generic enable_all() primitive, for use after the
|
||||
@ -73,11 +68,6 @@ int enable_all_listeners(struct protocol *proto);
|
||||
*/
|
||||
int disable_all_listeners(struct protocol *proto);
|
||||
|
||||
/* Marks a ready listener as limited so that we only try to re-enable it when
|
||||
* resources are free again. It will be queued into the specified queue.
|
||||
*/
|
||||
void limit_listener(struct listener *l, struct list *list);
|
||||
|
||||
/* Dequeues all of the listeners waiting for a resource in wait queue <queue>. */
|
||||
void dequeue_all_listeners(struct list *list);
|
||||
|
||||
|
@ -181,7 +181,7 @@ int resume_listener(struct listener *l)
|
||||
/* Marks a ready listener as full so that the stream code tries to re-enable
|
||||
* it upon next close() using resume_listener().
|
||||
*/
|
||||
void listener_full(struct listener *l)
|
||||
static void listener_full(struct listener *l)
|
||||
{
|
||||
if (l->state >= LI_READY) {
|
||||
if (l->state == LI_LIMITED)
|
||||
@ -195,7 +195,7 @@ void listener_full(struct listener *l)
|
||||
/* Marks a ready listener as limited so that we only try to re-enable it when
|
||||
* resources are free again. It will be queued into the specified queue.
|
||||
*/
|
||||
void limit_listener(struct listener *l, struct list *list)
|
||||
static void limit_listener(struct listener *l, struct list *list)
|
||||
{
|
||||
if (l->state == LI_READY) {
|
||||
LIST_ADDQ(list, &l->wait_queue);
|
||||
|
Loading…
x
Reference in New Issue
Block a user