adding nice set-socket-timeout optimization