uWSGI harakiri timeouts and client retries: preventing duplicate writes in WSGI handlers
Goal I run a WSGI application behind uWSGI (2.0.x) where POST endpoints perform database inserts. uWSGI's harakiri option aborts requests that exceed a configured time limit, and the client or upstream proxy may retry the same request afterward. Since uWSGI itself does not deduplicate retried requests, the WSGI handler can be invoked twice for what the user