ranm8 / requestify

Simplifies node HTTP request making.
http://ranm8.github.io/requestify
MIT License
223 stars 55 forks source link

timeout option can not work #30

Open tomwang1013 opened 9 years ago

tomwang1013 commented 9 years ago
requestify.request(app.get('java_search_server') + path, {
  method: 'GET',                                          
  params: options,                                        
  dataType: 'json',                                       
  timeout: 1000                                           
}).then(function(response) { 
  // expect return after 1 second
}                             

I set timeout to 1 second as above, but it didn't work as expected: no response received, it hang on!