You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that this converter is only available when HAProxy has been
25071
25072
compiled with USE_OPENSSL.
25073
+
</pre><a class="anchor" name="srv_is_up"></a><a class="anchor" name="7-srv_is_up"></a><a class="anchor" name="7.3.1-srv_is_up"></a><a class="anchor" name="srv_is_up (Using ACLs and fetching samples)"></a><a class="anchor" name="srv_is_up (Converters)"></a><div class="keyword"><b><a class="anchor" name="srv_is_up"></a><a href="#7.3.1-srv_is_up">srv_is_up</a></b></div><pre class="text">Takes an input value of type string, either a server name or <backend>/<server>
25074
+
format and returns true when the designated server is currently UP. Can be used
25075
+
in places where we want to look up a server status from a dynamic name, like a
25076
+
cookie value (e.g. req.cook(SRVID),srv_is_up) and then make a decision to
25077
+
direct a request elsewhere. Before using this, please keep in mind that using
25078
+
this converter on uncontrolled data might allow an external observer to query
25079
+
the state of any server in the whole configuration, which might possibly not
25080
+
be acceptable in some environments.
25072
25081
</pre><a class="anchor" name="srv_queue"></a><a class="anchor" name="7-srv_queue"></a><a class="anchor" name="7.3.1-srv_queue"></a><a class="anchor" name="srv_queue (Using ACLs and fetching samples)"></a><a class="anchor" name="srv_queue (Converters)"></a><div class="keyword"><b><a class="anchor" name="srv_queue"></a><a href="#7.3.1-srv_queue">srv_queue</a></b></div><pre class="text">Takes an input value of type string, either a server name or <backend>/<server>
25073
25082
format and returns the number of queued streams on that server. Can be used
25074
25083
in places where we want to look up queued streams from a dynamic name, like a
25075
25084
cookie value (e.g. req.cook(SRVID),srv_queue) and then make a decision to break
25076
-
persistence or direct a request elsewhere.
25085
+
persistence or direct a request elsewhere. Before using this, please keep in
25086
+
mind that using this converter on uncontrolled data might allow an external
25087
+
observer to query the state of any server in the whole configuration, which
25088
+
might possibly not be acceptable in some environments.
25077
25089
</pre><a class="anchor" name="strcmp"></a><a class="anchor" name="7-strcmp"></a><a class="anchor" name="7.3.1-strcmp"></a><a class="anchor" name="strcmp (Using ACLs and fetching samples)"></a><a class="anchor" name="strcmp (Converters)"></a><div class="keyword"><b><a class="anchor" name="strcmp"></a><a href="#7.3.1-strcmp">strcmp</a></b>(<span style="color: #080"><var></span>)</div><pre class="text">Compares the contents of <var> with the input value of type string. Returns
25078
25090
the result as a signed integer compatible with strcmp(3): 0 if both strings
25079
25091
are identical. A value less than 0 if the left string is lexicographically
0 commit comments