Add timeout option to socket client.
Add timeout setting to defaults.