title: How to force request function terminate in node.js if the response is not returned after a long time?
body: <p>My program has to deal with a huge amount of requests, some of them sometimes cannot get the returned callback (because of the server I send requests to). I'm wondering if there is any way for me to force the request terminate after a certain amount of time (for example 5s)?</p>
  
  <pre><code>request(item.url, function (error, response, html) {})
  </code></pre>
  
  <p>I really appreciate for any help.
  Thanks in advance.</p>