Timeout to get resource.
Merge pull request #23 from luizgpsantos/timeout_resource

Timeout to get resource.