added connect timeout support
2 files changed