>> Patch #1003700: Add socketpair function to socket module. > >The docstring (below) states the arguments are the same as socket(). >However, in sock_initobj() line 2496, the family is initialized to >AF_INET. I think the #if defined(AF_UNIX) code above should be >removed and family should be initialized to AF_INET. I talked Dave into this - AF_UNIX is typically the only address family that is valid for socketpair(). Using AF_INET under linux and OS X results in EOPNOTSUPP. >I don't think the #ifdef SIGPIPE code is correct. If the user >installed a signal handler calling signal() will remove it. I >think the call to signal() should be removed. I agree, but I think that was copied verbatim from elsewhere in socketmodule.c, so it was left with the aim of being bug for bug compatible with socket.socket(). -- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4