-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
bpo-35934: Add socket.create_server() utility function #11784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
ffa07b3
add socket.bind_socket() function + tests
giampaolo 5618b21
make ftplib use bind_socket() (reuse code)
giampaolo 6b3e634
use bind_socket() in tests (reuse code)
giampaolo cbaa3c1
set default backlog to 128; provide a more informative message if SO_…
giampaolo 9832435
add 'flags' parameter
giampaolo 17a6b7b
use bind_socket() in more unit-tests
giampaolo 29b1d69
add comment
giampaolo e4063f2
add NEWS entry
giampaolo 057d831
add 'reuse_addr' arg
giampaolo b4883cb
rename method
giampaolo fb0e442
make family and type kw-only args
giampaolo 3e876c5
raise ValueError if type is not SOCK_STREAM/DGRAM
giampaolo e9fb489
set IPV6_V6ONLY by default
giampaolo 231455f
unittest: check IPV6_V6ONLY is set by default
giampaolo fbdce4e
fix test failures
giampaolo 2e9e48c
adjust doc wording
giampaolo 4f28c47
change var name
giampaolo 281b914
set flags arg to None by default
giampaolo e003dfe
document that AF_INET is preferred if host's family is unclear
giampaolo 0a893ca
introduce supports_hybrid_ipv46 and relative bind_socket arg
giampaolo 2d247a2
various improvements:
giampaolo 2c3c85c
update doc
giampaolo 1931e7c
use 'localhost' in tests (safer)
giampaolo 2364a89
raise error on Windows if reuse_addr=True and type != SOCK_DGRAM
giampaolo 1d13a9c
update doc + provide better error message on bind()
giampaolo 46a562e
rename bind_socket() to create_server()
giampaolo 9cd6f01
get rid of reuse_addr arg
giampaolo d0e69bb
address @vstinner comments
giampaolo f93058b
fix NameError + add comment clarifying why we in case of ambiguous ho…
giampaolo 63d762e
fix test failures
giampaolo e95da59
don't use getaddrinfo(), change function signature
giampaolo 22ea974
rename arg hybrid_ipv46 -> dualstack_ipv6
giampaolo ad8a219
update doc
giampaolo 3b3df83
fix ftplib bug, skip IPV6 tests
giampaolo d75a600
idlelib/rpc.py: add missing address argument
terryjreedy 265b225
update doc
giampaolo 426907d
fix doc example + remove UDP-related test code which is no longer used
giampaolo d62499a
merge from master
giampaolo 7b75345
set backlog=0 instead of None; address doc-related review comments
giampaolo 0cf3bb1
change unit-tests so that client does not rely on getaddrinfo() - bet…
giampaolo 12bbf0c
fix wrong client addr + fix travis test due to extra whitespace
giampaolo caa7605
automatize -> automate
gpshead ecac919
Merge branch 'master' into bind-socket
giampaolo f786884
update doc; catch socket.error instead of Exception; remove idlelib i…
giampaolo e19b28f
Merge branch 'master' into bind-socket
giampaolo 5b49125
update doc (remove ref to activestate recipe)
giampaolo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.