pgjones / hypercorn

Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.
MIT License
1.12k stars 102 forks source link

Set TCP_NODELAY on sockets #223

Closed alex-anthropic closed 4 months ago

alex-anthropic commented 4 months ago

This brings it in line with what I think people will expect, since both trio and asyncio (as well as seemingly most other networking libraries) set it by default. trio discussions at https://github.com/python-trio/trio/issues/72 and https://github.com/python-trio/trio/issues/1792 asyncio: https://docs.python.org/3.6/library/asyncio-protocol.html aiohttp: https://github.com/aio-libs/aiohttp/issues/664