[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH
Robert Jordens
report at bugs.python.org
Sun Sep 18 17:22:56 EDT 2016
Robert Jordens added the comment:
It is still in cpython master e6e9ddd.
import asyncio
import socket
sock = socket.socket(family=socket.AF_BLUETOOTH,
type=socket.SOCK_STREAM,
proto=socket.BTPROTO_RFCOMM)
sock.setblocking(False)
addr = "00:12:34:56:78:99"
loop = asyncio.get_event_loop()
loop.run_until_complete(loop.sock_connect(sock, (addr, 1)))
Traceback (most recent call last):
File "/home/rj/work/hxm/t.py", line 9, in <module>
loop.run_until_complete(loop.sock_connect(sock, (addr, 1)))
File "/home/rj/src/cpython/Lib/asyncio/base_events.py", line 457, in run_until_complete
return future.result()
File "/home/rj/src/cpython/Lib/asyncio/futures.py", line 292, in result
raise self._exception
File "/home/rj/src/cpython/Lib/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "/home/rj/src/cpython/Lib/asyncio/selector_events.py", line 416, in sock_connect
yield from resolved
File "/home/rj/src/cpython/Lib/asyncio/futures.py", line 379, in __iter__
yield self # This tells Task to wait for completion.
File "/home/rj/src/cpython/Lib/asyncio/tasks.py", line 297, in _wakeup
future.result()
File "/home/rj/src/cpython/Lib/asyncio/futures.py", line 292, in result
raise self._exception
File "/home/rj/src/cpython/Lib/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/rj/src/cpython/Lib/socket.py", line 743, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -6] ai_family not supported
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27929>
_______________________________________
More information about the Python-bugs-list
mailing list