GeoNode / geonode-docker

Django base images for GeoNode
Other
9 stars 33 forks source link

Nginx request buffering configuration #40

Open etj opened 4 months ago

etj commented 4 months ago

uwsgi reports this warning when booting:

*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***

nginx is usually a buffered webserver, unless otherwise configured.

The configuration indeed states:

https://github.com/GeoNode/geonode-docker/blob/68d2f8c3be165d1e7e7019de15220ca54c62aeec/docker/nginx/geonode.conf.envsubst#L59

https://github.com/GeoNode/geonode-docker/blob/68d2f8c3be165d1e7e7019de15220ca54c62aeec/docker/nginx/geonode.conf.envsubst#L115

https://github.com/GeoNode/geonode-docker/blob/68d2f8c3be165d1e7e7019de15220ca54c62aeec/docker/nginx/geonode.conf.envsubst#L125

By removing buffering, django is aware about how many bytes have been transferred, so that it can send some transfer stats to the client real time. Anyway such buffering may cause uwsgi to terminate connections while uploading.

We need to find out a way to deal with this.