All possible socket commands errors

Hi,
I often use the socket commands from scripts.

Obviously, if “socat” has managed to transmit the command, its return code is 0.
If we want to check if the command was successful or failed, we have to look at the returned content.

I was trying to find all the possible outputs (and errors) in the documentation, but I failed.

For example, the “set server” command seems to return nothing on success, and a string on error (like “No such server”). Having the list of possible errors might help managing error in a more detailed way.

Thanks.

I suggest you file a Github issue as documentation/feature request:

Thanks, I’ve opened an issue : Doc: All possible socket commands errors · Issue #2829 · haproxy/haproxy · GitHub