added socket_connect_timeout and socket_keepalive options. fixed #353