Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MINOR: config: rhttp: Don't require SSL when attach-srv name parsing
An attach-srv config line usually looks like this: tcp-request session attach-srv be/srv name ssl_c_s_dn(CN) while a rhttp server line usually looks like this: server srv rhttp@ sni req.hdr(host) The server sni argument is used as a key for looking up connection in the connection pool. The attach-srv name argument is used as a key for inserting connections into the pool. For it to work correctly they must match. There was a check that either both the attach-srv and server provide that key or neither does. It also checked that SSL and SNI was activated on the server. This is too strict. This patch removes that requirement. Now you can pass arbitrary expressions as the name expression. With this patch we also produce a more helpful and specific error message. I'm doing this as I want to use `fc_pp_unique_id` as the name. Arguably it would be easier to understand if instead of using `name` and `sni` for `attach-srv` and `server` rules it used the same term in both places - like "conn-pool-key" or something. That would make it clear that the two must match. But it's too late to change that now.
- Loading branch information