Provide a way to set connection timeout

... and set a reasonable default of 8 seconds.

Since client operates in the working process, I think it would be great to limit socket connect timeout down to some value.