setup global socket timeout.