From: Aurelien DARRAGON Date: Wed, 19 Apr 2023 08:33:02 +0000 (+0200) Subject: CLEANUP: server: fix srv_set_{running, stopping, stopped} function comment X-Git-Tag: v2.8-dev8~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10518c0d59b52910404348c5148e623dec9f8873;p=thirdparty%2Fhaproxy.git CLEANUP: server: fix srv_set_{running, stopping, stopped} function comment Fixing function comments for the server state changing function since they still refer to asynchonous propagation of server state which is no longer in play. Moreover, there were some mixups between running/stopping. --- diff --git a/src/server.c b/src/server.c index ab73509422..ff2832ff16 100644 --- a/src/server.c +++ b/src/server.c @@ -1581,10 +1581,9 @@ static void srv_append_more(struct buffer *msg, struct server *s, } } -/* Marks server down, regardless of its checks' statuses. The server is - * registered in a list to postpone the counting of the remaining servers on - * the proxy and transfers queued streams whenever possible to other servers at - * a sync point. Maintenance servers are ignored. +/* Marks server down, regardless of its checks' statuses. The server + * transfers queued streams whenever possible to other servers at a sync + * point. Maintenance servers are ignored. * * Must be called with the server lock held. */ @@ -1609,9 +1608,8 @@ void srv_set_stopped(struct server *s, enum srv_op_st_chg_cause cause) } /* Marks server up regardless of its checks' statuses and provided it isn't - * in maintenance. The server is registered in a list to postpone the counting - * of the remaining servers on the proxy and tries to grab requests from the - * proxy at a sync point. Maintenance servers are ignored. + * in maintenance. The server tries to grab requests from the proxy at a sync + * point. Maintenance servers are ignored. * * Must be called with the server lock held. */ @@ -1642,9 +1640,8 @@ void srv_set_running(struct server *s, enum srv_op_st_chg_cause cause) } /* Marks server stopping regardless of its checks' statuses and provided it - * isn't in maintenance. The server is registered in a list to postpone the - * counting of the remaining servers on the proxy and tries to grab requests - * from the proxy. Maintenance servers are ignored. + * isn't in maintenance. The server tries to redispatch pending requests + * to the proxy. Maintenance servers are ignored. * * Must be called with the server lock held. */