Terminating a uwsgi worker programmatically
问题 In my application I need to "simulate" a HTTP timeout. Simply put, in this scenario: client -> myapp -> server client makes a HTTP POST connection to myapp which forwards it to server . However, server does not respond due to network issues or similar problems. I am stuck with an open TCP session from client which I'll need to drop. My application uses web.py, nginx and uwsgi. I cannot return a custom HTTP error such as 418 I am a teapot - it has to be a connection timeout to mirror server 's