This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rjordens
Recipients abarry, gvanrossum, larry, ned.deily, rjordens, vstinner, yselivanov
Date 2016-09-18.21:22:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474233776.36.0.745585218554.issue27929@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-09-18 21:22:56rjordenssetrecipients: + rjordens, gvanrossum, vstinner, larry, ned.deily, yselivanov, abarry
2016-09-18 21:22:56rjordenssetmessageid: <1474233776.36.0.745585218554.issue27929@psf.upfronthosting.co.za>
2016-09-18 21:22:56rjordenslinkissue27929 messages
2016-09-18 21:22:56rjordenscreate