gh-104061: Add socket.SO_BINDTOIFINDEX constant (GH-104062) · python/cpython@e1fdc3c · GitHub
Skip to content

Commit e1fdc3c

Browse files
authored
gh-104061: Add socket.SO_BINDTOIFINDEX constant (GH-104062)
Add socket.SO_BINDTOIFINDEX constant This socket option avoids a race condition between SO_BINDTODEVICE and network interface renaming.
1 parent 142502e commit e1fdc3c

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

Doc/library/socket.rst

Lines changed: 5 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add :data:`socket.SO_BINDTOIFINDEX` constant.

Modules/socketmodule.c

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)