104, 'Connection reset by peer' socket error, or When does closing a socket result in a RST rather than FIN?
问题 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.error in socket.py, in read: (104, \'Connection reset by peer\') When I listen in with wireshark, the \"good\" and \"bad\" responses look very similar: Because of the size of the OAuth header, the request is split into two packets. The service responds to both with ACK The service sends the response, one packet per header