From c363b6ed13c87eec4079181bfcf08c6baa429540 Mon Sep 17 00:00:00 2001 From: Alassane Yattara Date: Mon, 15 Jan 2024 18:07:42 +0100 Subject: [PATCH] Bug-fix: Issue with uwsgi large requests uwsgi IOError: write error: https://stackoverflow.com/questions/34768527/uwsgi-ioerror-write-error --- templates/django.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/django.conf b/templates/django.conf index f7f5ad8..1e5eecc 100644 --- a/templates/django.conf +++ b/templates/django.conf @@ -98,6 +98,9 @@ server { location @django { uwsgi_pass {{ django_name }}; include uwsgi_params; + + # when a client closes the connection then keep the channel to uwsgi open. Otherwise uwsgi throws an IOError + uwsgi_ignore_client_abort on; } location / {