title: URLError: <urlopen error [Errno 104] Connection reset by peer>
body: <p>Whenever I make a call to facebook server to fetch user data using FQL, 10% of the time I get </p>
  
  <pre><code>URLError: &lt;urlopen error [Errno 104] Connection reset by peer&gt;
  </code></pre>
  
  <p>I am not able to reproduce this error. Below is the traceback:</p>
  
  <pre><code>File "/home/fb.py", line 250, in get_data()
     return json.load(urlopen(URL, params))
  
   File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
     return _opener.open(url, data, timeout)
  
   File "/usr/lib/python2.6/urllib2.py", line 391, in open
     response = self._open(req, data)
  
   File "/usr/lib/python2.6/urllib2.py", line 409, in _open
     '_open', req)
  
   File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
     result = func(*args)
  
   File "/usr/lib/python2.6/urllib2.py", line 1169, in https_open
     return self.do_open(httplib.HTTPSConnection, req)
  
   File "/usr/lib/python2.6/urllib2.py", line 1136, in do_open
     raise URLError(err)
  
  URLError: &lt;urlopen error [Errno 104] Connection reset by peer&gt;
  </code></pre>
  
  <p>Any help appreciated</p>