autobahn-python: autobahn with uvloop policy won't work

If uvloop event policy is set, autobahn server won’t handshake with client.

To reproduce this, just use the following:

import asyncio
import uvloop

# use uvloop loop policy
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 20 (20 by maintainers)

Most upvoted comments

@meejah I’m testing uvloop with some Python 3 Crossbar components right now and it seems to work fine. In fact, comparing the VIRT/RES usage between uvloop and the default event loop I noticed that uvloop seems to be vastly more resource efficient

Yeah, I understand. So, in fact, I don’t see anything why we couldn’t have the Crossbar.io container worker shell implemented also in an aslo flavor and make that available as a new worker subtype: twisted or asyncio. We could do that for container workers in Crossbar.io. Not for router workers. However, Crossbar.io container workers already bring the benefit you are after: ability to run, manage and monitor many components in a single process.