DracoBlue/node-facebook-client — pull request #22 by leoasis (2012-01-19 14:59:15+00:00)
Title: Configurable timeouts

I've added configurable timeout.

This can be set either at a FacebookClient level, by using the timeout property of the options object, or it can also be set individually by restCall or graphCall, setting the last parameter with the timeout value.

I've also changed the way the request.abort() error was behaving, because it was being wrapped in a try/catch clause, but request.abort does not throw exception, it just triggers the 'error' event in the request object. So I listen to that event and then call the callback with empty result.

Let me know if there is something I'm missing or needs to be modified, I've tested it a little bit with the run_example.js and playing with timeout values.

I'm sorry about the extra commits, still learning git.