title: How to catch error Connection reset by peer (Errno::ECONNRESET)
body: <p>The following code sometimes generates a "connection reset by peer" error. Can anyone show me how to handle this exception?</p>
  
  <pre><code>doc = Nokogiri::HTML(open(url))
  Connection reset by peer (Errno::ECONNRESET)
  </code></pre>