uWSGI raises OSError: write error during large request

It may be the case that when you upload things, you use chunked encoding. There is uWSGI option –chunked-input-timeout, that by default is 4 seconds (it defaults to value of –socket-timeout, which is 4 seconds). Though problem theoretically may lie somewhere else, I suggest you to try aforementioned options. Plus, annoying exceptions are the reason … Read more

Difference between workers and processes in uwsgi

workers and processes are indeed synonyms and the same thing. (I’m sure you’ve seen the configuration option documentation for them both) That configuration is very incorrect and could actually have no effect as a result. (I just found out that by having the cheaper option twice in one of my ini files neither was being … Read more

Invalid transaction persisting across requests

Edit 2016-06-05: A PR that solves this problem has been merged on May 26, 2016. Flask PR 1822 Edit 2015-04-13: Mystery solved! TL;DR: Be absolutely sure your teardown functions succeed, by using the teardown-wrapping recipe in the 2014-12-11 edit! Started a new job also using Flask, and this issue popped up again, before I’d put … Read more

Running asyncio loop engine using external python plugin

I believe you should follow the approach outlined here: https://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html#bonus-multiple-python-versions-for-the-same-uwsgi-binary Basically: Build a core uwsgi binary that does not have the Python plugin (to be used by the emperor): make PROFILE=nolang And then build plugins for each python version that you use (for the vassals), and configure each vassal to use the correct plugin.

Your server socket listen backlog is limited to 100 connections

Note that a “listen backlog” of 100 connections doesn’t mean that your server can only handle 100 simultaneous (or total) connections – this is instead dependent on the number of configured processes or threads. The listen backlog is a socket setting telling the kernel how to limit the number of outstanding (as yet unaccapted) connections … Read more

tech