mirror of
https://github.com/python/cpython.git
synced 2025-12-11 11:31:05 +00:00
gh-124761: add socket.SO_REUSEPORT_LB (#124961)
This commit is contained in:
parent
42f7a00ae8
commit
9ddc388527
3 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Add :data:`~socket.SO_REUSEPORT_LB` constant to :mod:`socket` for FreeBSD.
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue