8000 gh-103092: Isolate socket by erlend-aasland · Pull Request #103094 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-103092: Isolate socket #103094

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 24 commits into from
Apr 9, 2023
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4a7c6d9
Establish global state
erlend-aasland Mar 11, 2023
220a0aa
Add sock_type to state
erlend-aasland Mar 12, 2023
94ca00c
Add exceptions to state
erlend-aasland Mar 12, 2023
fc9cdce
Add accept4_works to state
erlend-aasland Mar 12, 2023
29b4d1c
Add sock_cloexec_works to state
erlend-aasland Mar 12, 2023
93a2b62
Add defaulttimeout to state
erlend-aasland Mar 12, 2023
4164f96
Refactor: replace state query with param in set_herror()
erlend-aasland Mar 12, 2023
dc740d1
Refactor: replace state query with param in set_gaierror()
erlend-aasland Mar 12, 2023
abf00c3
Refactor: replace state query with param in new_sockobject()
erlend-aasland Mar 12, 2023
9c1c9c6
Refactor: replace state query with param in init_sockobject()
erlend-aasland Mar 12, 2023
82c00c4
Refactor: replace state query with param in gethost_common()
erlend-aasland Mar 12, 2023
72e69e3
Refactor: replace state query with param in sock_get_api()
erlend-aasland Mar 12, 2023
274c412
Refactor: replace state query with param in setipaddr()
erlend-aasland Mar 12, 2023
d839af0
Add state pointer to PySocketSockObject
erlend-aasland Mar 12, 2023
13d14da
Use sock pointer from sock type context where applicable
erlend-aasland Mar 12, 2023
b4edf64
Multi-phase init
erlend-aasland Mar 12, 2023
c51a696
Remove unneeded forward decl
erlend-aasland Mar 30, 2023
d8e448f
Add test
erlend-aasland Mar 30, 2023
4332571
fixup dealloc
erlend-aasland Mar 30, 2023
6a00c54
Add NEWS
erlend-aasland Apr 3, 2023
e5027c2
Style: remove unneeded parens
erlend-aasland Apr 4, 2023
98d1566
Pull in main
erlend-aasland Apr 4, 2023
e5827e7
Sync with main
erlend-aasland Apr 8, 2023
2019a93
Simplify ADD_EXC macro further
erlend-aasland Apr 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unneeded forward decl
  • Loading branch information
erlend-aasland committed Apr 4, 2023
commit c51a696ecab64d9df5ba114dc9fdd5ed464d0326
2 changes: 0 additions & 2 deletions Modules/socketmodule.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ typedef union sock_addr {
like the address family, which is used to decode socket address
arguments properly. */

struct _socket_state; // Forward decl.

typedef struct {
PyObject_HEAD
SOCKET_T sock_fd; /* Socket file descriptor */
Expand Down
0