ProxyBroker icon indicating copy to clipboard operation
ProxyBroker copied to clipboard

DNSResolver potential issue & RuntimeError: File descriptor 88 is used by transport

Open th3l0b3 opened this issue 8 years ago • 3 comments

Using Kali Linux 2.0

/usr/local/lib/python3.5/dist-packages/aiohttp/client.py:479: DeprecationWarning: Use async with instead warnings.warn("Use async with instead", DeprecationWarning) Exception ignored in: <bound method DNSResolver._sock_state_cb of <aiodns.DNSResolver object at 0x7ffff355f978>> Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/aiodns/init.py", line 85, in _sock_state_cb self.loop.add_reader(fd, self._handle_event, fd, READ) File "/usr/lib/python3.5/asyncio/selector_events.py", line 336, in add_reader self._ensure_fd_no_transport(fd) File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport fd, transport)) RuntimeError: File descriptor 87 is used by transport <_SelectorSocketTransport fd=87 read=polling write=<idle, bufsize=0>> Exception ignored in: <bound method DNSResolver._sock_state_cb of <aiodns.DNSResolver object at 0x7ffff355fa58>> Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/aiodns/init.py", line 85, in _sock_state_cb self.loop.add_reader(fd, self._handle_event, fd, READ) File "/usr/lib/python3.5/asyncio/selector_events.py", line 336, in add_reader self._ensure_fd_no_transport(fd) File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport fd, transport)) RuntimeError: File descriptor 88 is used by transport <_SelectorSocketTransport fd=88 read=polling write=<idle, bufsize=0>>

th3l0b3 avatar Mar 28 '17 18:03 th3l0b3

Seing this also with https://github.com/kulaj/ProxyBroker/commit/a797fb98390e219360c1f2cd80eea53cb06309b4 (where async warning is fixed). aiodns 1.1.1

Exception ignored in: <bound method DNSResolver._sock_state_cb of <aiodns.DNSResolver object at 0x7f982ce2a1d0>>
Traceback (most recent call last):
  File "/home/me/.local/lib/python3.5/site-packages/aiodns/__init__.py", line 85, in _sock_state_cb
    self.loop.add_reader(fd, self._handle_event, fd, READ)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 336, in add_reader
    self._ensure_fd_no_transport(fd)
  File "/usr/lib/python3.5/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 103 is used by transport <_SelectorSocketTransport fd=103 read=polling write=<idle, bufsize=0>>

wvengen avatar May 12 '17 08:05 wvengen

Same for me. I am using aiodns==1.1.1 but sometimes i get the File descriptor error :-/

erm3nda avatar Jun 13 '17 02:06 erm3nda

This is an issue related to aiohttp which has been fixed: https://github.com/aio-libs/aiohttp/issues/1848

gabrielgradinaru avatar Sep 19 '17 18:09 gabrielgradinaru