title: How solve python requests error: "Max retries exceeded with url"
body: <p>I have the follow code:</p>
  
  <pre><code>res = requests.get(url)
  </code></pre>
  
  <p>I use multi-thread method that will have the follow error:</p>
  
  <p>ConnectionError: HTTPConnectionPool(host='bjtest.com', port=80): Max retries exceeded with url: /rest/data?method=check&amp;test=123 (Caused by : [Errno 104] Connection reset by peer)</p>
  
  <p>I have used the follow method, but it still have the error:</p>
  
  <pre><code>s = requests.session()
  s.keep_alive = False
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>res = requests.get(url, headers={'Connection': 'close'})
  </code></pre>
  
  <p>So, I should how do it?</p>
  
  <p>BTW, the <code>url</code> is OK, but it only can be visited internal, so the <code>url</code> have no problem. Thanks!</p>