Add socket timeout.