---
title: "gunicorn 27.0.1 Breaking Changes on PyPI | Since.dev"
description: "What each gunicorn release removed, renamed or changed: 174 breaking changes in 16 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/gunicorn
last_updated: 2026-12-04
---

# gunicorn breaking changes

gunicorn 27.0.1 (November 12, 2026) is its newest release with breaking changes. The first: ASGI server now refuses 1xx informational responses sent after the final response has started in gunicorn 27.0.1. Every breaking API change we have recorded in gunicorn on PyPI: 174 breaking changes in 16 versions. Below, its 16 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `27.0.1`, released November 12, 2026. [Source repository](https://github.com/benoitc/gunicorn)

Its 22.0.0 release requires [Python 3.7](https://since.dev/calendar/python/3.7.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [26.2.0](#v-26-2-0) to [27.0.1](#v-27-0-1): 39 breaking changes in 2 versions.
- From [21.0.0](#v-21-0-0) to [27.0.1](#v-27-0-1): 170 breaking changes in 15 versions.

## gunicorn 27.0.1 breaking changes

gunicorn 27.0.1, released November 12, 2026: 1 breaking change.

- **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](https://github.com/benoitc/gunicorn/releases/tag/27.0.1)

## gunicorn 27.0.0 breaking changes

gunicorn 27.0.0, released November 10, 2026: 38 breaking changes.

- **Removed** `gunicorn.http.wsgi.InvalidHeaderName`  

gunicorn.http.wsgi.InvalidHeaderName was removed in gunicorn 27.0.0 [pypi.org](https://pypi.org/project/gunicorn/27.0.0/)
- **Removed** `gunicorn.http2.stream.HTTP2Stream.request_body`  

HTTP2Stream.request_body was removed in gunicorn 27.0.0 [pypi.org](https://pypi.org/project/gunicorn/27.0.0/)
- **Renamed** `gunicorn.http.wsgi.InvalidHeader`  

Use gunicorn.http.body.InvalidHeader instead. [pypi.org](https://pypi.org/project/gunicorn/27.0.0/)
- **Renamed** `gunicorn.http2.request.HTTP2Body.__len__`  

Use HTTP2Body.\_\_next\_\_ instead. [pypi.org](https://pypi.org/project/gunicorn/27.0.0/)
- **Behavior changed**  

An empty client close frame is now answered with code 1000 instead of the reserved 1005. [github.com](https://github.com/benoitc/gunicorn/releases/tag/27.0.0)
- **Behavior changed**  

Request lines longer than limit_request_line now get 414 URI Too Long instead of 400. [github.com](https://github.com/benoitc/gunicorn/releases/tag/27.0.0)
- **Behavior changed**  

Values stored in scope state by one request are no longer visible to the next request. [github.com](https://github.com/benoitc/gunicorn/releases/tag/27.0.0)
- **Behavior changed**  

ASGI now closes idle kept-alive connections after the keepalive setting, as other workers do. [github.com](https://github.com/benoitc/gunicorn/releases/tag/27.0.0)
- **Behavior changed**  

When the application sends an invalid response header, WSGI now answers 500 instead of 400. [github.com](https://github.com/benoitc/gunicorn/releases/tag/27.0.0)
- **Behavior changed**  

The connection is now closed after a CONNECT request, whatever the application answers. [github.com](https://github.com/benoitc/gunicorn/releases/tag/27.0.0)

And 28 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## gunicorn 26.2.0 breaking changes

gunicorn 26.2.0, released August 24, 2026: 6 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](https://github.com/benoitc/gunicorn/releases/tag/26.2.0)
- **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](https://github.com/benoitc/gunicorn/releases/tag/26.2.0)
- **Signature changed** `gunicorn.http.Message`  

Was class Message; now class Message(HeaderPolicy). [pypi.org](https://pypi.org/project/gunicorn/26.2.0/)
- **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](https://pypi.org/project/gunicorn/26.2.0/)
- **Signature changed** `gunicorn.http2.request.HTTP2Request`  

Was class HTTP2Request; now class HTTP2Request(HeaderPolicy). [pypi.org](https://pypi.org/project/gunicorn/26.2.0/)
- **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](https://pypi.org/project/gunicorn/26.2.0/)

## gunicorn 26.1.0 breaking changes

gunicorn 26.1.0, released August 18, 2026: 7 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](https://github.com/benoitc/gunicorn/releases/tag/26.1.0)
- **Renamed** `gunicorn.config.validate_list_of_existing_files`  

Use gunicorn.config.validate_list_of_files_or_patterns instead. [pypi.org](https://pypi.org/project/gunicorn/26.1.0/)
- **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](https://github.com/benoitc/gunicorn/releases/tag/26.1.0)
- **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](https://github.com/benoitc/gunicorn/releases/tag/26.1.0)
- **Behavior changed** `BodyReceiver`  

BodyReceiver no longer swallows asyncio.CancelledError and returning http.disconnect; cancellation now propagates to the caller. [github.com](https://github.com/benoitc/gunicorn/releases/tag/26.1.0)
- **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](https://github.com/benoitc/gunicorn/releases/tag/26.1.0)
- **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](https://github.com/benoitc/gunicorn/releases/tag/26.1.0)

## gunicorn 26.0.0 breaking changes

gunicorn 26.0.0, released May 5, 2026: 7 breaking changes.

- **Removed** `eventlet`  

The eventlet worker class has been dropped. Migrate to gevent, gthread, or tornado workers. [github.com](https://github.com/benoitc/gunicorn/releases/tag/26.0.0)
- **Removed** `gunicorn.workers.geventlet`  

gunicorn.workers.geventlet was removed in gunicorn 26.0.0 [pypi.org](https://pypi.org/project/gunicorn/26.0.0/)
- **Behavior changed**  

The transport is closed after the RFC 6455 close handshake completes, and connections are drained on close. [github.com](https://github.com/benoitc/gunicorn/releases/tag/26.0.0)
- **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](https://github.com/benoitc/gunicorn/releases/tag/26.0.0)
- **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](https://github.com/benoitc/gunicorn/releases/tag/26.0.0)
- **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](https://pypi.org/project/gunicorn/26.0.0/)
- **Signature changed** `gunicorn.workers.gthread.TConn.close`  

Was def close(self); now def close(self, graceful=False). [pypi.org](https://pypi.org/project/gunicorn/26.0.0/)

## gunicorn 25.3.0 breaking changes

gunicorn 25.3.0, released March 27, 2026: 8 breaking changes.

- **Removed** `gunicorn.asgi.AsyncRequest`  

gunicorn.asgi.AsyncRequest was removed in gunicorn 25.3.0 [pypi.org](https://pypi.org/project/gunicorn/25.3.0/)
- **Removed** `gunicorn.asgi.message`  

gunicorn.asgi.message was removed in gunicorn 25.3.0 [pypi.org](https://pypi.org/project/gunicorn/25.3.0/)
- **Renamed** `gunicorn.asgi.message.PPCommand`  

Use gunicorn.asgi.parser.PPCommand instead. [pypi.org](https://pypi.org/project/gunicorn/25.3.0/)
- **Renamed** `gunicorn.asgi.message.PPFamily`  

Use gunicorn.asgi.parser.PPFamily instead. [pypi.org](https://pypi.org/project/gunicorn/25.3.0/)
- **Renamed** `gunicorn.asgi.message.PPProtocol`  

Use gunicorn.asgi.parser.PPProtocol instead. [pypi.org](https://pypi.org/project/gunicorn/25.3.0/)
- **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](https://github.com/benoitc/gunicorn/releases/tag/25.3.0)
- **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](https://github.com/benoitc/gunicorn/releases/tag/25.3.0)
- **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](https://pypi.org/project/gunicorn/25.3.0/)

## Older versions

10 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### gunicorn 25.2.0 breaking changes

gunicorn 25.2.0, released March 24, 2026: 4 breaking changes.

- **Removed** `gunicorn.asgi.protocol.AsyncRequest`  

gunicorn.asgi.protocol.AsyncRequest was removed in gunicorn 25.2.0 [pypi.org](https://pypi.org/project/gunicorn/25.2.0/)
- **Removed** `gunicorn.asgi.websocket.WebSocketProtocol.reader`  

WebSocketProtocol.reader was removed in gunicorn 25.2.0 [pypi.org](https://pypi.org/project/gunicorn/25.2.0/)

And 2 more in this version.

### gunicorn 25.1.0 breaking changes

gunicorn 25.1.0, released February 13, 2026: 54 breaking changes.

- **Removed** `gunicorn.dirty.arbiter.DirtyProtocol.decode`  

DirtyProtocol.decode was removed in gunicorn 25.1.0 [pypi.org](https://pypi.org/project/gunicorn/25.1.0/)
- **Removed** `gunicorn.dirty.arbiter.DirtyProtocol.encode`  

DirtyProtocol.encode was removed in gunicorn 25.1.0 [pypi.org](https://pypi.org/project/gunicorn/25.1.0/)

And 52 more in this version.

### gunicorn 25.0.2 breaking changes

gunicorn 25.0.2, released February 6, 2026: 2 breaking changes.

- **Removed** `gunicorn.arbiter.DirtyArbiter`  

gunicorn.arbiter.DirtyArbiter was removed in gunicorn 25.0.2 [pypi.org](https://pypi.org/project/gunicorn/25.0.2/)
- **Removed** `gunicorn.arbiter.set_dirty_socket_path`  

gunicorn.arbiter.set_dirty_socket_path was removed in gunicorn 25.0.2 [pypi.org](https://pypi.org/project/gunicorn/25.0.2/)

### gunicorn 25.0.0 breaking changes

gunicorn 25.0.0, released February 1, 2026: 1 breaking change.

- **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](https://pypi.org/project/gunicorn/25.0.0/)

### gunicorn 24.1.1 breaking changes

gunicorn 24.1.1, released January 24, 2026: 2 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](https://github.com/benoitc/gunicorn/releases/tag/24.1.1)
- **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](https://github.com/benoitc/gunicorn/releases/tag/24.1.1)

### gunicorn 24.1.0 breaking changes

gunicorn 24.1.0, released January 23, 2026: 4 breaking changes.

- **Removed** `gunicorn.config.ProxyProtocol.action`  

ProxyProtocol.action was removed in gunicorn 24.1.0 [pypi.org](https://pypi.org/project/gunicorn/24.1.0/)
- **Removed** `gunicorn.http.Request.parse_proxy_protocol`  

Request.parse_proxy_protocol was removed in gunicorn 24.1.0 [pypi.org](https://pypi.org/project/gunicorn/24.1.0/)

And 2 more in this version.

### gunicorn 24.0.0 breaking changes

gunicorn 24.0.0, released January 23, 2026: 8 breaking changes.

- **Removed** `gunicorn.app.base.Arbiter.PIPE`  

gunicorn.app.base.Arbiter.PIPE was removed in gunicorn 24.0.0 [pypi.org](https://pypi.org/project/gunicorn/24.0.0/)
- **Removed** `gunicorn.arbiter.Arbiter.PIPE`  

gunicorn.arbiter.Arbiter.PIPE was removed in gunicorn 24.0.0 [pypi.org](https://pypi.org/project/gunicorn/24.0.0/)

And 6 more in this version.

### gunicorn 23.0.0 breaking changes

gunicorn 23.0.0, released August 10, 2024: 6 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](https://github.com/benoitc/gunicorn/releases/tag/23.0.0)
- **Removed** `gunicorn.config.TolerateDangerousFraming`  

gunicorn.config.TolerateDangerousFraming was removed in gunicorn 23.0.0 [pypi.org](https://pypi.org/project/gunicorn/23.0.0/)

And 4 more in this version.

### gunicorn 22.0.0 breaking changes

gunicorn 22.0.0, released April 16, 2024: 22 breaking changes.

- **Removed**  

The minimum supported Python version is now 3.7, so older Python versions no longer run this release. [github.com](https://github.com/benoitc/gunicorn/releases/tag/22.0.0)
- **Removed** `gunicorn.http.message.HEADER_RE`  

gunicorn.http.message.HEADER_RE was removed in gunicorn 22.0.0 [pypi.org](https://pypi.org/project/gunicorn/22.0.0/)

And 20 more in this version.

### gunicorn 21.0.0 breaking changes

gunicorn 21.0.0, released July 17, 2023: 4 breaking changes.

- **Renamed** `gunicorn.config.validate_hostport`  

Use gunicorn.config.validate_statsd_address instead. [pypi.org](https://pypi.org/project/gunicorn/21.0.0/)
- **Renamed** `gunicorn.util.check_is_writeable`  

Use gunicorn.util.check_is_writable instead. [pypi.org](https://pypi.org/project/gunicorn/21.0.0/)

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](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
