New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection is reset when redirecting a large request to Flask app #2474
Comments
Any log to share? |
On server side, First exception:
|
even if not chatty what does it display at debug log level? |
Launching with the command line: gunicorn --bind 127.0.0.1:5000 --limit-request-line 0 --limit-request-field_size 0 --log-level debug "server:make_main_app()" gives:
Did I miss something? |
Is this the same as #1733 maybe? |
Well, I'm using version 20.0.4 which (to my understanding) supports |
I'm not able to reproduce this locally. |
Ohh, that's annoying... just to be sure, is the gunicorn command as follows? gunicorn --bind 127.0.0.1:5000 --limit-request-line 0 --limit-request-field_size 0 --log-level debug "server:make_main_app()" To avoid a copy error from my side here is the file I'm using (txt extension added to upload) Could it be an OS issue? I've tested with two different Debian-based Linuces using I've also tried Docker containers with
Do you want me to try/test anything? Would you mind to share your Python configuration, please? |
Hi,
I'm using a standard Flask pattern (described in Flask doc) to dispatch requests by path to different applications and with large requests (~3Mb) the connection is reset.
The minimal working example for the server is (in file
server.py
for commands below):launched with
gunicorn --bind 127.0.0.1:5000 "server:make_main_app()"
and the request leading to the connection being reset looks like (library requests):
Package configuration is (as listed by
pip
):with
Python 3.9.1
on Linux.Some further remarks seem important to mention:
Werkzeug
server (ie.run_simple
),gunicorn --bind 127.0.0.1:5000 "server:make_secondary_app()"
) works as expected (post request onhttp://127.0.0.1:5000
),--limit-request-line 0 --limit-request-field_size 0
doesn't make any difference andThanks for your help!
The text was updated successfully, but these errors were encountered: