Changed timeout.
made connect timeout configurable