hypercorn icon indicating copy to clipboard operation
hypercorn copied to clipboard

Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.

Results 133 hypercorn issues
Sort by recently updated
recently updated
newest added

[In the documentation](https://github.com/pgjones/hypercorn/blob/8cef567301a5a3f4363d1c2cad76008e58add8aa/docs/how_to_guides/configuring.rst): ![image](https://user-images.githubusercontent.com/3187637/173015850-fc91c538-0bd5-4805-8e11-1992b2490e37.png) However `h11_max_incomplete_size ` is used in h11 (so HTTP 1.1 support): https://github.com/pgjones/hypercorn/blob/8cef567301a5a3f4363d1c2cad76008e58add8aa/src/hypercorn/protocol/h11.py#L96

``` 2022-06-09 08:00:39 ERROR Task was destroyed but it is pending! task: 2022-06-09 08:00:39 ERROR Task was destroyed but it is pending! task: Exception ignored in: Traceback (most recent call...

I am using `Python 3.10.4` with the latest version of `hypercorn` and `quart[h3]` libraries. I serve the app: ``` pipenv run hypercorn --reload --quic-bind 0.0.0.0:4433 --certfile server.crt --keyfile server.key --bind...

Is there a way for a worker to know which # worker it is? In other systems, it is common to have an environment variable (`WORKER=0`, ...), but I didn't...

``` def start(sys_args: Optional[List[str]] = None) -> None: parser = argparse.ArgumentParser() parser.add_argument( "--port", dest="port", help=""" 设置服务的端口 """, default=8001, action="store", type=int, ) parser.add_argument( "--tags", dest="tags", help=""" 设置服务的标签,如果不用main,自己的服务请携带test """, default="main", action="store", )...

Given this set up in `somepackage/main.py` ```py def dev(): """ Broken, hypercorn misinterprets what to re-run """ import hypercorn.asyncio import hypercorn.config config = hypercorn.config.Config() config.use_reloader = True asyncio.run(hypercorn.asyncio.serve(app, config)) ```...

I've observed that when an endpoint delays before responding, like so: ```py import asyncio from fastapi import FastAPI app = FastAPI() @app.get("/") async def foobar(): await asyncio.sleep(9) return {"foo": "bar"}...

Following code: ```py from fastapi import FastAPI app = FastAPI() @app.get("/") async def foobar(): return {"foo": "bar"} ``` When hit by `curl -v http://localhost:8000 --http2-prior-knowledge` sometimes (1 out of 20?)...