Commit bdaa256d authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #1544279: Improve thread-safety of the socket module by moving

the sock_addr_t storage out of the socket object.
Will backport to 2.5.
parent f51afaba
...@@ -240,6 +240,9 @@ Library ...@@ -240,6 +240,9 @@ Library
Extension Modules Extension Modules
----------------- -----------------
- Patch #1544279: Improve thread-safety of the socket module by moving
the sock_addr_t storage out of the socket object.
- Speed up function calls into the math module. - Speed up function calls into the math module.
- Bug #1588217: don't parse "= " as a soft line break in binascii's - Bug #1588217: don't parse "= " as a soft line break in binascii's
......
This diff is collapsed.
...@@ -114,7 +114,6 @@ typedef struct { ...@@ -114,7 +114,6 @@ typedef struct {
int sock_family; /* Address family, e.g., AF_INET */ int sock_family; /* Address family, e.g., AF_INET */
int sock_type; /* Socket type, e.g., SOCK_STREAM */ int sock_type; /* Socket type, e.g., SOCK_STREAM */
int sock_proto; /* Protocol type, usually 0 */ int sock_proto; /* Protocol type, usually 0 */
sock_addr_t sock_addr; /* Socket address */
PyObject *(*errorhandler)(void); /* Error handler; checks PyObject *(*errorhandler)(void); /* Error handler; checks
errno, returns NULL and errno, returns NULL and
sets a Python exception */ sets a Python exception */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment