Overview

Gunicorn 22.0, released on April 17, 2024, brings security fixes, a new HTTP parser, and Python 3.12 support.

Main Features

Security and HTTP parser

The HTTP parser has been replaced to fix request smuggling vulnerabilities. Python 3.12 is officially supported with associated optimizations.

python
# gunicorn 22.0 with Python 3.12
# pip install gunicorn>=22.0

# gunicorn --workers 4 --bind 0.0.0.0:8000 app:app

# Configuration via file
# gunicorn.conf.py
bind = '0.0.0.0:8000'
workers = 4
worker_class = 'sync'
timeout = 120

Sources