You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run an aiohttp Application in a deamon thread. I use asyncio.get_child_watcher() in the main thread so subprocesses will be allowed to run. but I get RuntimeError: set_wakeup_fd only works in main thread
Expected behaviour
Running aiohttp Application in a worker thread
Actual behaviour
RuntimeError is raised
Steps to reproduce
A little more of context:
I'm writing tests for an aiohttp application. This app calls an external rest-full API to get some data. Now I'm trying to create another aiohttp application in a daemon thread to mock that third-party application behaviour.
This is my MockServer class:
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].
[new issue]: https://github.com/aio-libs/aiohttp/issues/new
Long story short
I'm trying to run an aiohttp
Application
in a deamon thread. I useasyncio.get_child_watcher()
in the main thread so subprocesses will be allowed to run. but I getRuntimeError: set_wakeup_fd only works in main thread
Expected behaviour
Running aiohttp Application in a worker thread
Actual behaviour
RuntimeError is raised
Steps to reproduce
A little more of context:
I'm writing tests for an aiohttp application. This app calls an external rest-full API to get some data. Now I'm trying to create another aiohttp application in a daemon thread to mock that third-party application behaviour.
This is my
MockServer
class:Your environment
Python 3.5.2
OSX
aiohttp
The text was updated successfully, but these errors were encountered: