Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default_exception_handler Exception in callback FileSender._sendfile_cb(<Future cancelled>, 12, 11, 27360, 172674, <_UnixSelecto...e debug=False>, True) #1848

Closed
wencan opened this issue Apr 27, 2017 · 2 comments
Labels

Comments

@wencan
Copy link

wencan commented Apr 27, 2017

debian 9
python 3
aiohttp 1.3.3

ERROR [2017-04-27 11:04:41,468] base_events.py:1259#default_exception_handler Exception in callback FileSender._sendfile_cb(<Future cancelled>, 12, 11, 27360, 172674, <_UnixSelecto...e debug=False>, True)
handle: <Handle FileSender._sendfile_cb(<Future cancelled>, 12, 11, 27360, 172674, <_UnixSelecto...e debug=False>, True)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/file_sender.py", line 25, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/local/lib/python3.6/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/local/lib/python3.6/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 12 is used by transport <_SelectorSocketTransport fd=12 read=polling write=<polling, bufsize=0>>

and:

ERROR [2017-04-27 11:14:24,018] base_events.py:1259#default_exception_handler Exception in callback FileSender._sendfile_cb(<Future cancelled>, 12, 11, 27512, 54508, <_UnixSelecto...e debug=False>, True)
handle: <Handle FileSender._sendfile_cb(<Future cancelled>, 12, 11, 27512, 54508, <_UnixSelecto...e debug=False>, True)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/file_sender.py", line 25, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/local/lib/python3.6/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/local/lib/python3.6/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 12 is used by transport <_SelectorSocketTransport fd=12 read=polling write=<polling, bufsize=0>>
ERROR [2017-04-27 11:14:24,019] base_events.py:1259#default_exception_handler Exception in callback FileSender._sendfile_cb(<Future cancelled>, 12, 11, 27512, 54508, <_UnixSelecto...e debug=False>, True)
handle: <Handle FileSender._sendfile_cb(<Future cancelled>, 12, 11, 27512, 54508, <_UnixSelecto...e debug=False>, True)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/file_sender.py", line 25, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/local/lib/python3.6/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/local/lib/python3.6/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 12 is used by transport <_SelectorSocketTransport fd=12 read=polling write=<polling, bufsize=0>>
ERROR [2017-04-27 11:14:24,019] base_events.py:1259#default_exception_handler Exception in callback FileSender._sendfile_cb(<Future cancelled>, 12, 11, 27512, 54508, <_UnixSelecto...e debug=False>, True)
handle: <Handle FileSender._sendfile_cb(<Future cancelled>, 12, 11, 27512, 54508, <_UnixSelecto...e debug=False>, True)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncio/events.py", line 126, in _run
    self._callback(*self._args)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/file_sender.py", line 25, in _sendfile_cb
    loop.remove_writer(out_fd)
  File "/usr/local/lib/python3.6/asyncio/selector_events.py", line 351, in remove_writer
    self._ensure_fd_no_transport(fd)
  File "/usr/local/lib/python3.6/asyncio/selector_events.py", line 258, in _ensure_fd_no_transport
    fd, transport))
RuntimeError: File descriptor 12 is used by transport <_SelectorSocketTransport fd=12 read=polling write=<polling, bufsize=0>>
@fafhrd91
Copy link
Member

This should be fixed in 2.0

@lock
Copy link

lock bot commented Oct 28, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants