Classes
H3Worker
5
▼
Single-threaded async worker that serves HTTP/3 over QUIC/UDP.
Uses create_datagram_endpoint with …
H3Worker
5
▼
Single-threaded async worker that serves HTTP/3 over QUIC/UDP.
Uses create_datagram_endpoint with a pre-bound UDP socket. Zoomies provides sans-I/O QUIC; pounce owns the UDP loop and connection state.
Methods
run
0
▼
Start the H3 worker's event loop (blocking).
run
0
▼
def run(self) -> None
shutdown
0
▼
Signal the worker to stop.
shutdown
0
▼
def shutdown(self) -> None
Internal Methods 3 ▼
__init__
7
▼
__init__
7
▼
def __init__(self, config: ServerConfig, app: ASGIApp, sock: socket.socket, *, worker_id: int = 0, shutdown_event: threading.Event | None = None, ssl_certfile: str, ssl_keyfile: str) -> None
Parameters
| Name | Type | Description |
|---|---|---|
config |
— |
|
app |
— |
|
sock |
— |
|
worker_id |
— |
Default:0
|
shutdown_event |
— |
Default:None
|
ssl_certfile |
— |
|
ssl_keyfile |
— |
_serve
0
▼
Run the QUIC datagram endpoint until shutdown.
async
_serve
0
▼
async def _serve(self) -> None
_bridge_shutdown
1
▼
Poll external shutdown event and set async shutdown.
async
_bridge_shutdown
1
▼
async def _bridge_shutdown(self, ext_event: threading.Event) -> None
Parameters
| Name | Type | Description |
|---|---|---|
ext_event |
— |