mirror of
https://github.com/python/cpython.git
synced 2025-08-21 09:21:18 +00:00
Patch #1544279: Improve thread-safety of the socket module by moving
the sock_addr_t storage out of the socket object.
This commit is contained in:
parent
1c305dbf97
commit
95b744cea9
3 changed files with 48 additions and 53 deletions
|
@ -114,7 +114,6 @@ typedef struct {
|
|||
int sock_family; /* Address family, e.g., AF_INET */
|
||||
int sock_type; /* Socket type, e.g., SOCK_STREAM */
|
||||
int sock_proto; /* Protocol type, usually 0 */
|
||||
sock_addr_t sock_addr; /* Socket address */
|
||||
PyObject *(*errorhandler)(void); /* Error handler; checks
|
||||
errno, returns NULL and
|
||||
sets a Python exception */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue