{"action":"created","issue":{"url":"https://api.github.com/repos/miguelgrinberg/Flask-HTTPAuth/issues/29","labels_url":"https://api.github.com/repos/miguelgrinberg/Flask-HTTPAuth/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/miguelgrinberg/Flask-HTTPAuth/issues/29/comments","events_url":"https://api.github.com/repos/miguelgrinberg/Flask-HTTPAuth/issues/29/events","html_url":"https://github.com/miguelgrinberg/Flask-HTTPAuth/issues/29","id":114196238,"number":29,"title":"http auth with nginx and uwsgi","user":{"login":"gensmusic","id":5219641,"avatar_url":"https://avatars.githubusercontent.com/u/5219641?v=3","gravatar_id":"","url":"https://api.github.com/users/gensmusic","html_url":"https://github.com/gensmusic","followers_url":"https://api.github.com/users/gensmusic/followers","following_url":"https://api.github.com/users/gensmusic/following{/other_user}","gists_url":"https://api.github.com/users/gensmusic/gists{/gist_id}","starred_url":"https://api.github.com/users/gensmusic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gensmusic/subscriptions","organizations_url":"https://api.github.com/users/gensmusic/orgs","repos_url":"https://api.github.com/users/gensmusic/repos","events_url":"https://api.github.com/users/gensmusic/events{/privacy}","received_events_url":"https://api.github.com/users/gensmusic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-30T04:08:31Z","updated_at":"2015-10-30T09:07:34Z","closed_at":null,"body":"Recently I use flask + uwsgi + nginx to make a server and I use Flask-HTTPAuth\r\nto do the digest auth in flask.\r\nMost ot time it works fine but when I do a large post (let's say 3M) then I got 502 error in browser.\r\nnginx error:\r\n\r\n [error] 3438#0: *16 sendfile() failed (32: Broken pipe) while sending request to upstream, client: 203.100.xx.xx, server: xxxx.net, request: \"POST /create_invitation HTTP/1.1\", upstream: \"uwsgi://unix:/xxxxr/uwsgi.sock:\r\n\r\nI search a lot on google to solve it but didn't success until I close the http auth.\r\nAnd it works well now. So should I move http auth from flask to nginx ?\r\n\r\nI guess flask-httpauth close the connection after it sends 401 ? So nginx got error ?\r\n\r\nthanks"},"comment":{"url":"https://api.github.com/repos/miguelgrinberg/Flask-HTTPAuth/issues/comments/152465709","html_url":"https://github.com/miguelgrinberg/Flask-HTTPAuth/issues/29#issuecomment-152465709","issue_url":"https://api.github.com/repos/miguelgrinberg/Flask-HTTPAuth/issues/29","id":152465709,"user":{"login":"miguelgrinberg","id":2715854,"avatar_url":"https://avatars.githubusercontent.com/u/2715854?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelgrinberg","html_url":"https://github.com/miguelgrinberg","followers_url":"https://api.github.com/users/miguelgrinberg/followers","following_url":"https://api.github.com/users/miguelgrinberg/following{/other_user}","gists_url":"https://api.github.com/users/miguelgrinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelgrinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelgrinberg/subscriptions","organizations_url":"https://api.github.com/users/miguelgrinberg/orgs","repos_url":"https://api.github.com/users/miguelgrinberg/repos","events_url":"https://api.github.com/users/miguelgrinberg/events{/privacy}","received_events_url":"https://api.github.com/users/miguelgrinberg/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T09:07:34Z","updated_at":"2015-10-30T09:07:34Z","body":"Are there any errors, crashes or stack traces printed by the Flask process?"}}