squeaky-pl / japronto

Screaming-fast Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop and picohttpparser.
MIT License
8.61k stars 581 forks source link

Cannot use await with pipelining #9

Open channelcat opened 7 years ago

channelcat commented 7 years ago

Using japronto 0.1, this will produce and error when running tests utilizing pipelining:

from japronto import Application

async def test():
    return

async def hello(request):
    await test()
    return request.Response(text='Hello world!')

app = Application()
app.router.add_route('/', hello)
app.run(host='0.0.0.0', port=80)
Worker excited with code -11!
squeaky-pl commented 7 years ago

Ups, that's definitely a segmentation fault.