On Wed, Jan 18, 2017 at 4:06 AM, Ian Kelly wrote:
>> What's the official way to say to asyncio "here's a listening socket,
>> start managing it for me"?
>
> I haven't tried this but create_server takes a "sock" keyword-argument.
>
> https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.
On 2017-01-17 17:57, Chris Angelico wrote:
> If I write a web server using asyncio (and the aiohttp package), I can
> spin up the server with:
>
> await loop.create_server(app.make_handler(), "0.0.0.0", 8080)
>
> This works fine for a high port, but if I want to bind to port 80, I
> need to eithe
On Tue, Jan 17, 2017 at 9:57 AM, Chris Angelico wrote:
> If I write a web server using asyncio (and the aiohttp package), I can
> spin up the server with:
>
> await loop.create_server(app.make_handler(), "0.0.0.0", 8080)
>
> This works fine for a high port, but if I want to bind to port 80, I
> ne