Add timeout connect support
Merge pull request #65 from 3XX0/timeout-connect

Add timeout connect support