I have a Django application that connect to google apps to send emails. However, few days ago I started to get \"Connection reset by peer\" error. Sometimes it works, sometimes
It looks like you are not reading post-data before closing the connection with nginx.
If you cannot modify your app try adding --post-buffering 8192 to your uWSGI command line to force UWSGI reading post-data automatically