gunicorn breaking changes
Updated December 4, 2026
On this page
Latest version 27.0.1, released November 12, 2026. Source repository
Its 22.0.0 release requires Python 3.7 or later. Python end of life dates.
- From 26.2.0 to 27.0.1: 39 breaking changes in 2 versions.
- From 21.0.0 to 27.0.1: 170 breaking changes in 15 versions.
gunicorn 27.0.1 breaking changes
- Behavior changed
The ASGI server now refuses an informational (1xx) response sent after the final response has started, where it previously wrote it out of order. Applications that send such responses must stop doing so. github.com
gunicorn 27.0.0 breaking changes
- Removed
gunicorn.http.wsgi.InvalidHeaderName
gunicorn.http.wsgi.InvalidHeaderName was removed in gunicorn 27.0.0 pypi.org - Removed
gunicorn.http2.stream.HTTP2Stream.request_body
HTTP2Stream.request_body was removed in gunicorn 27.0.0 pypi.org - Renamed
gunicorn.http.wsgi.InvalidHeader
Use gunicorn.http.body.InvalidHeader instead. pypi.org - Renamed
gunicorn.http2.request.HTTP2Body.__len__
Use HTTP2Body.__next__ instead. pypi.org - Behavior changed
An empty client close frame is now answered with code 1000 instead of the reserved 1005. github.com - Behavior changed
Request lines longer than limit_request_line now get 414 URI Too Long instead of 400. github.com - Behavior changed
Values stored in scope state by one request are no longer visible to the next request. github.com - Behavior changed
ASGI now closes idle kept-alive connections after the keepalive setting, as other workers do. github.com - Behavior changed
When the application sends an invalid response header, WSGI now answers 500 instead of 400. github.com - Behavior changed
The connection is now closed after a CONNECT request, whatever the application answers. github.com
And 28 more in this version. Sign up to see every change
gunicorn 26.2.0 breaking changes
- Behavior changed
HTTP2Request
HTTP/2 requests are now validated with the same header policy as HTTP/1 and the URL scheme comes from the transport. Requests that were accepted before may now be rejected, and wsgi.url_scheme may differ. github.com - Behavior changed
sendfile
Calling sendfile() on an HTTP/2 response now fails instead of bypassing HTTP/2 framing. Code that relied on sendfile() for HTTP/2 responses must write the body through normal streamed responses. github.com - Signature changed
gunicorn.http.Message
Was class Message; now class Message(HeaderPolicy). pypi.org - Signature changed
gunicorn.http.wsgi.create
Was def create(req, sock, client, server, cfg); now def create(req, sock, client, server, cfg, response_class=None, response_args=()). pypi.org - Signature changed
gunicorn.http2.request.HTTP2Request
Was class HTTP2Request; now class HTTP2Request(HeaderPolicy). pypi.org - Signature changed
gunicorn.workers.base_async.AsyncWorker.handle_http2
Was def handle_http2(self, listener, client, addr); now def handle_http2(self, listener, client, addr, preface=b'', upgrade=None). pypi.org
gunicorn 26.1.0 breaking changes
- Removed
The packaging library was dropped from the install requirements and moved to the gevent and testing extras. Code that relied on packaging being installed with gunicorn must install it separately. github.com - Renamed
gunicorn.config.validate_list_of_existing_files
Use gunicorn.config.validate_list_of_files_or_patterns instead. pypi.org - Behavior changed
Requests with more than one Host or Content-Type header are now refused with InvalidHeader on both parsers. Clients that send duplicates must send a single header. github.com - Behavior changed
Content-Length is now stripped on 1xx and 204 responses, and body bytes are dropped for HEAD, 204 and 304 responses in write() and sendfile(), with a warning logged. github.com - Behavior changed
BodyReceiver
BodyReceiver no longer swallows asyncio.CancelledError and returning http.disconnect; cancellation now propagates to the caller. github.com - Behavior changed
ChunkedReader.parse_chunk_size
A chunked body cut short after the last chunk line now raises ChunkMissingTerminator instead of being accepted as complete. github.com - Behavior changed
logconfig
Reloading now re-runs logger setup from logconfig, logconfig_dict, logconfig_json and loglevel. An invalid log configuration on reload is reported and the previous configuration is kept. github.com
gunicorn 26.0.0 breaking changes
- Removed
eventlet
The eventlet worker class has been dropped. Migrate to gevent, gthread, or tornado workers. github.com - Removed
gunicorn.workers.geventlet
gunicorn.workers.geventlet was removed in gunicorn 26.0.0 pypi.org - Behavior changed
The transport is closed after the RFC 6455 close handshake completes, and connections are drained on close. github.com - Behavior changed
Body framing is now dropped on HEAD, 204 and 304 responses even when the framework set it, and Content-Length is kept on HEAD and 304. github.com - Behavior changed
Requests with authority-form or asterisk-form targets outside CONNECT or OPTIONS, relative-reference targets, control characters in header values, forbidden trailer names, or list-form Content-Length are now rejected. github.com - Signature changed
gunicorn.http.parser.Parser.finish_body
Was def finish_body(self); now def finish_body(self, deadline=None, max_bytes=None). pypi.org - Signature changed
gunicorn.workers.gthread.TConn.close
Was def close(self); now def close(self, graceful=False). pypi.org
gunicorn 25.3.0 breaking changes
- Removed
gunicorn.asgi.AsyncRequest
gunicorn.asgi.AsyncRequest was removed in gunicorn 25.3.0 pypi.org - Removed
gunicorn.asgi.message
gunicorn.asgi.message was removed in gunicorn 25.3.0 pypi.org - Renamed
gunicorn.asgi.message.PPCommand
Use gunicorn.asgi.parser.PPCommand instead. pypi.org - Renamed
gunicorn.asgi.message.PPFamily
Use gunicorn.asgi.parser.PPFamily instead. pypi.org - Renamed
gunicorn.asgi.message.PPProtocol
Use gunicorn.asgi.parser.PPProtocol instead. pypi.org - Behavior changed
The ASGI parser now rejects duplicate Content-Length headers, requests with both Content-Length and Transfer-Encoding, chunked encoding in HTTP/1.0, stacked chunked encoding, and invalid Transfer-Encoding or chunk sizes. Requests... github.com - Behavior changed
--limit-request-line
Setting --limit-request-line to 0 now disables the request line limit as documented. Users who relied on 0 meaning the default maximum must set an explicit value. github.com - Signature changed
gunicorn.asgi.parser.PythonProtocol.__init__
Was def __init__(self, on_message_begin=None, on_url=None, on_header=None, on_headers_complete=None, on_body=None, on_message_complete=None, limit_request_line=8190, limit_request_fields=100, limit_request_field_size=8190... pypi.org
Older versions
10 older versions, each with its first changes. Sign up to see every change
Show 10 older versions
gunicorn 25.2.0 breaking changes
- Removed
gunicorn.asgi.protocol.AsyncRequest
gunicorn.asgi.protocol.AsyncRequest was removed in gunicorn 25.2.0 pypi.org - Removed
gunicorn.asgi.websocket.WebSocketProtocol.reader
WebSocketProtocol.reader was removed in gunicorn 25.2.0 pypi.org
And 2 more in this version.
gunicorn 25.1.0 breaking changes
- Removed
gunicorn.dirty.arbiter.DirtyProtocol.decode
DirtyProtocol.decode was removed in gunicorn 25.1.0 pypi.org - Removed
gunicorn.dirty.arbiter.DirtyProtocol.encode
DirtyProtocol.encode was removed in gunicorn 25.1.0 pypi.org
And 52 more in this version.
gunicorn 25.0.2 breaking changes
- Removed
gunicorn.arbiter.DirtyArbiter
gunicorn.arbiter.DirtyArbiter was removed in gunicorn 25.0.2 pypi.org - Removed
gunicorn.arbiter.set_dirty_socket_path
gunicorn.arbiter.set_dirty_socket_path was removed in gunicorn 25.0.2 pypi.org
gunicorn 25.0.0 breaking changes
- Signature changed
gunicorn.http.get_parser
Was def get_parser(cfg, source, source_addr); now def get_parser(cfg, source, source_addr, http2_connection=False). pypi.org
gunicorn 24.1.1 breaking changes
- Behavior changed
forwarded_allow_ips
forwarded_allow_ips stays a string for compatibility, but its network validation now uses strict mode and rejects CIDR values with host bits set, such as 192.168.1.1/24. Use a valid network address like 192.168.1.0/24. github.com - Behavior changed
proxy_allow_ips
proxy_allow_ips stays a string for compatibility, but its network validation now uses strict mode and rejects CIDR values with host bits set, such as 192.168.1.1/24. Use a valid network address like 192.168.1.0/24. github.com
gunicorn 24.1.0 breaking changes
- Removed
gunicorn.config.ProxyProtocol.action
ProxyProtocol.action was removed in gunicorn 24.1.0 pypi.org - Removed
gunicorn.http.Request.parse_proxy_protocol
Request.parse_proxy_protocol was removed in gunicorn 24.1.0 pypi.org
And 2 more in this version.
gunicorn 24.0.0 breaking changes
- Removed
gunicorn.app.base.Arbiter.PIPE
gunicorn.app.base.Arbiter.PIPE was removed in gunicorn 24.0.0 pypi.org - Removed
gunicorn.arbiter.Arbiter.PIPE
gunicorn.arbiter.Arbiter.PIPE was removed in gunicorn 24.0.0 pypi.org
And 6 more in this version.
gunicorn 23.0.0 breaking changes
- Removed
--tolerate-dangerous-framing
The temporary --tolerate-dangerous-framing switch, added in 22.0, has been removed. Stop passing it to gunicorn. github.com - Removed
gunicorn.config.TolerateDangerousFraming
gunicorn.config.TolerateDangerousFraming was removed in gunicorn 23.0.0 pypi.org
And 4 more in this version.
gunicorn 22.0.0 breaking changes
- Removed
The minimum supported Python version is now 3.7, so older Python versions no longer run this release. github.com - Removed
gunicorn.http.message.HEADER_RE
gunicorn.http.message.HEADER_RE was removed in gunicorn 22.0.0 pypi.org
And 20 more in this version.
gunicorn 21.0.0 breaking changes
- Renamed
gunicorn.config.validate_hostport
Use gunicorn.config.validate_statsd_address instead. pypi.org - Renamed
gunicorn.util.check_is_writeable
Use gunicorn.util.check_is_writable instead. pypi.org
And 2 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.