104, 'Connection reset by peer' socket error, or When does closing a socket result in a RST rather than FIN?

前端 未结 4 2073
情话喂你
情话喂你 2020-11-29 23:44

We\'re developing a Python web service and a client web site in parallel. When we make an HTTP request from the client to the service, one call consistently raises a socket

4条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 00:22

    I had the same issue however with doing an upload of a very large file using a python-requests client posting to a nginx+uwsgi backend.

    What ended up being the cause was the the backend had a cap on the max file size for uploads lower than what the client was trying to send.

    The error never showed up in our uwsgi logs since this limit was actually one imposed by nginx.

    Upping the limit in nginx removed the error.

提交回复
热议问题