cloudflare / pingora

A library for building fast, reliable and evolvable network services.
Apache License 2.0
20.25k stars 1.1k forks source link

Support more tcp socket option #213

Open escoffier opened 2 months ago

escoffier commented 2 months ago

TcpSocketOptions can set IPV6_V6ONLY only right now. In our use case, we would like to set IP_TRANSPARENT flag. Some other users may have needs to set socket options toos.

https://github.com/cloudflare/pingora/blob/0de54eb9071a9c4baccc6bad7acad11e9c54186f/pingora-core/src/listeners/l4.rs#L54-L61

Describe the solution you'd like

provide more flag for TcpSocketOptions