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:
Martin v. Löwis 2006-12-03 11:24:00 +00:00
parent 1c305dbf97
commit 95b744cea9
3 changed files with 48 additions and 53 deletions

View file

@ -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 */