{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/2850","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/2850/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/2850/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/2850/events","html_url":"https://github.com/kennethreitz/requests/issues/2850","id":113456222,"number":2850,"title":"Connection reset by peer problem.","user":{"login":"pcsysen","id":459869,"avatar_url":"https://avatars.githubusercontent.com/u/459869?v=3","gravatar_id":"","url":"https://api.github.com/users/pcsysen","html_url":"https://github.com/pcsysen","followers_url":"https://api.github.com/users/pcsysen/followers","following_url":"https://api.github.com/users/pcsysen/following{/other_user}","gists_url":"https://api.github.com/users/pcsysen/gists{/gist_id}","starred_url":"https://api.github.com/users/pcsysen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcsysen/subscriptions","organizations_url":"https://api.github.com/users/pcsysen/orgs","repos_url":"https://api.github.com/users/pcsysen/repos","events_url":"https://api.github.com/users/pcsysen/events{/privacy}","received_events_url":"https://api.github.com/users/pcsysen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-26T21:34:56Z","updated_at":"2015-10-27T01:22:10Z","closed_at":null,"body":"Hi, we are using slumber to setup a smoke test against our server(django + uwsgi). We started to see this \"connection reset by peer\" error after we added the \"content-length\" in the response header. It only happens occasionally. However it never happens when we don't include content-length in the response header, at least based on our experiences. I see some similar questions about they all seem to related to ssl. We are just using http. Could anyone help? Thanks.\r\n\r\nurl: POST to http://127.0.0.1:8080/api/v1....\r\n```\r\nTraceback (most recent call last):\r\n  File \"./smoke_test_driver.py\", line 936, \r\n    _pre_run_apis(host, cpe_mac, api_prefix, webpa_gateway, current_environment)\r\n  File \"./smoke_test_driver.py\", line 790, in _pre_run_apis\r\n    cpe.device_class.put({'xpc_model_class': device_class})\r\n  File \"/usr/local/lib/python2.7/site-packages/slumber/__init__.py\", line 175, in put\r\n    resp = self._request(\"PUT\", data=data, files=files, params=kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/slumber/__init__.py\", line 97, in _request\r\n    resp = self._store[\"session\"].request(method, url, data=data, params=params, files=files, headers=headers)\r\n  File \"/usr/local/lib/python2.7/site-packages/requests/sessions.py\", line 465, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/requests/sessions.py\", line 573, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/requests/adapters.py\", line 415, in send\r\n    raise ConnectionError(err, request=request)\r\nrequests.exceptions.ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer'))\r\n```"},"comment":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/comments/151334943","html_url":"https://github.com/kennethreitz/requests/issues/2850#issuecomment-151334943","issue_url":"https://api.github.com/repos/kennethreitz/requests/issues/2850","id":151334943,"user":{"login":"Lukasa","id":1382556,"avatar_url":"https://avatars.githubusercontent.com/u/1382556?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukasa","html_url":"https://github.com/Lukasa","followers_url":"https://api.github.com/users/Lukasa/followers","following_url":"https://api.github.com/users/Lukasa/following{/other_user}","gists_url":"https://api.github.com/users/Lukasa/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukasa/subscriptions","organizations_url":"https://api.github.com/users/Lukasa/orgs","repos_url":"https://api.github.com/users/Lukasa/repos","events_url":"https://api.github.com/users/Lukasa/events{/privacy}","received_events_url":"https://api.github.com/users/Lukasa/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T01:22:10Z","updated_at":"2015-10-27T01:22:10Z","body":"Hmm. With `ConnectionResetByPeer`, I think uWSGI or your server will be at fault. Does uWSGI provide any output in these error cases?"}}