We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 02645a2 + 4fe1f6f commit 9e074eaCopy full SHA for 9e074ea
1 file changed
msgpackrpc/address.py
@@ -28,7 +28,7 @@ def socket(self, family=socket.AF_UNSPEC):
28
socket.SOCK_STREAM, 0, socket.AI_PASSIVE)[0]
29
af, socktype, proto, canonname, sockaddr = res
30
sock = socket.socket(af, socktype, proto)
31
- set_close_exec(sock)
+ set_close_exec(sock.fileno())
32
sock.setblocking(0)
33
if af == socket.AF_INET6:
34
if hasattr(socket, "IPPROTO_IPV6"):
0 commit comments