ERROR asyncio An open stream object is being garbage collected; call "stream.close()" explicitly. WARNING py.warnings /usr/lib/python3.8/concurrent/futures/thread.py:47: ResourceWarning: unclosed self.future = future WARNING py.warnings /usr/lib/python3.8/asyncio/selector_events.py:684: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=28 read=idle write=> _warn(f"unclosed transport {self!r}", ResourceWarning, source=self) Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3.8/concurrent/futures/thread.py", line 47, in __init__ self.future = future RuntimeError: coroutine ignored GeneratorExit ERROR asyncio Task was destroyed but it is pending! task: wait_for=<_GatheringFuture pending cb=[()]>> ERROR asyncio Task was destroyed but it is pending! task: wait_for= cb=[gather.._done_callback() at /usr/lib/python3.8/asyncio/tasks.py:751]> ERROR asyncio Task exception was never retrieved future: ()> exception=RuntimeError('aclose(): asynchronous generator is already running')> RuntimeError: aclose(): asynchronous generator is already running ERROR handler ('::1', 57960, 0, 0) <=> ('www.google.com', 443) exception: Traceback (most recent call last): File "/opt/prettysocks/prettysocks.py", line 329, in closing_writer yield File "/opt/prettysocks/prettysocks.py", line 356, in handler await relay(dreader, dwriter, ureader, uwriter, uname) GeneratorExit During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.8/contextlib.py", line 662, in __aexit__ cb_suppress = await cb(*exc_details) File "/usr/lib/python3.8/contextlib.py", line 189, in __aexit__ await self.gen.athrow(typ, value, traceback) File "/opt/prettysocks/prettysocks.py", line 332, in closing_writer await writer.wait_closed() File "/usr/lib/python3.8/asyncio/streams.py", line 376, in wait_closed await self._protocol._get_close_waiter(self) RuntimeError: cannot reuse already awaited coroutine During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/prettysocks/prettysocks.py", line 357, in handler logger.info('%s done', log_name) File "/usr/lib/python3.8/contextlib.py", line 679, in __aexit__ raise exc_details[1] File "/usr/lib/python3.8/contextlib.py", line 662, in __aexit__ cb_suppress = await cb(*exc_details) File "/usr/lib/python3.8/contextlib.py", line 189, in __aexit__ await self.gen.athrow(typ, value, traceback) RuntimeError: athrow(): asynchronous generator is already running WARNING py.warnings /usr/lib/python3.8/threading.py:422: ResourceWarning: unclosed with self._cond: WARNING py.warnings /usr/lib/python3.8/threading.py:422: ResourceWarning: unclosed with self._cond: WARNING py.warnings /usr/lib/python3.8/threading.py:422: ResourceWarning: unclosed with self._cond: WARNING py.warnings /usr/lib/python3.8/asyncio/selector_events.py:684: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=20 read=idle write=> _warn(f"unclosed transport {self!r}", ResourceWarning, source=self) WARNING py.warnings /usr/lib/python3.8/asyncio/selector_events.py:684: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=24 read=idle write=> _warn(f"unclosed transport {self!r}", ResourceWarning, source=self) WARNING py.warnings /usr/lib/python3.8/asyncio/selector_events.py:684: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=30 read=idle write=> _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)