Created
June 8, 2013 11:18
-
-
Save anthonyrisinger/5734859 to your computer and use it in GitHub Desktop.
uWSGI + SIGPIPE + OSError
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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