:added connection timeout
Merge pull request #625 from apruden/connection-timeout

:added connection timeout