Skip to content

Allow to specify a dialer for the connection pool to use

Mikhail Mazurskiy requested to merge ash2k/dial-opts-func into master

This is useful to allow to override connection creation e.g. to specify per-connection dial options. For example, rate limiting per-target host is much easier to implement via a per-connection option that contains a rate limiter.

I need this to implement client-side rate limiting in kas gitlab-org/cluster-integration/gitlab-agent#34 (closed)

Edited by Mikhail Mazurskiy

Merge request reports