Skip to content

Instantly share code, notes, and snippets.

@anthonyrisinger
Created June 8, 2013 11:18
Show Gist options
  • Save anthonyrisinger/5734859 to your computer and use it in GitHub Desktop.
Save anthonyrisinger/5734859 to your computer and use it in GitHub Desktop.
uWSGI + SIGPIPE + OSError
#!/bin/bash
uwsgi --http :9000 --eval '
import sys
from time import sleep
from pprint import pformat as pf, pprint as pp
sys.excepthook = lambda *a, **k: pp(("ARGS:",a)) or pp(("KWDS",k))
def application(e, s):
s("200 OK", [("Content-Type", "text/plain")])
pp(e)
sleep(3)
return pf(e)
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment