gh-124761: add socket.SO_REUSEPORT_LB (#124961)

This commit is contained in:
Thomas Grainger 2024-12-26 14:50:20 +00:00 committed by GitHub
parent 42f7a00ae8
commit 9ddc388527
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

View file

@ -674,6 +674,14 @@ Constants
.. availability:: Linux >= 3.9
.. data:: SO_REUSEPORT_LB
Constant to enable duplicate address and port bindings with load balancing.
.. versionadded:: next
.. availability:: FreeBSD >= 12.0
.. data:: AF_HYPERV
HV_PROTOCOL_RAW
HVSOCKET_CONNECT_TIMEOUT

View file

@ -0,0 +1 @@
Add :data:`~socket.SO_REUSEPORT_LB` constant to :mod:`socket` for FreeBSD.

View file

@ -7916,6 +7916,9 @@ socket_exec(PyObject *m)
ADD_INT_MACRO(m, SO_REUSEPORT);
#endif
#endif
#ifdef SO_REUSEPORT_LB
ADD_INT_MACRO(m, SO_REUSEPORT_LB);
#endif
#ifdef SO_SNDBUF
ADD_INT_MACRO(m, SO_SNDBUF);
#endif