Skip to content

25.2.0 no longer honors --limit-request-line 0 #3563

@benoitc

Description

@benoitc

Discussed in #3562

Originally posted by crgunn-mantech March 26, 2026

Type

Bug Report

Description

When I upgraded from 25.1.0 to 25.2.0 the server stopped honoring the --limit-request-line 0 command line parameter and started responding with

Bad Request

Request Line is too large (10088 > 8190)

I expected the newer versions to continue to honor the --limit-request-line 0 parameter to mean unlimited.

https://gunicorn.org/reference/settings/#limit_request_line

Steps to Reproduce (for bugs)

  1. Create simple app
  2. run gunicorn with --limit-request-line 0
  3. issue a GET request with a URL over 8190 characters
  4. get error message
  5. downgrade gunicorn to 25.1.0, repeat, and no error.

Configuration

gunicorn --reload --workers 2 \
--bind 0.0.0.0:$port \
--timeout 1800 \
--graceful-timeout 1800 \
-k gevent \
--worker-connections 100 \
--max-requests 1000 \
--max-requests-jitter 100 \
--keep-alive 60 \
--limit-request-line 0 \
--access-logfile - \
--access-logformat '%(t)s "%(r)s" %(s)s %(b)s' \
--error-logfile - \
app.wsgi

Logs / Error Output

[2026-03-26 21:28:36 +0000] [154] [WARNING] Invalid request from ip=xxx.xxx.xxx.xxx: Request Line is too large (10088 > 8190)

Gunicorn Version

gunicorn (version 25.2.0)

Python Version

Python 3.13.9

Worker Class

gevent

Operating System

debian 13

Additional Context

No response

Checklist

  • I have searched existing discussions and issues for duplicates
  • I have checked the documentation and FAQ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions