support Connection timeout on connecting state.
Merge pull request #31 from alibaba/connect-timeout

support Connection timeout on connecting state.