Good day!

I create a pdf file on the server and return it to the client for later saving in the browser. The generated file weighs ~ 370 KB, but only 255.8 KB is transferred to the client, the rest is cropped. Smaller files are transferred without error.

The following is observed in the logs:

epoll_ctl(): File exists [core/event.c line 651] OSError: write error epoll_ctl(): No such file or directory [core/event.c line 635] 

Python 3.4 + nginx + uwsgi is used.

  • Please show me how you give the file - tutankhamun

1 answer 1

The problem is solved by adding the uwsgi_buffers parameter to nginx.conf :

 uwsgi_buffers 8 512k;