Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 350 for adir (0.05 sec)

  1. pkg/ctrlz/ctrlz.go

    		router.PathPrefix("/debug/pprof/").HandlerFunc(pprof.Index)
    	}
    	registerHome(router, mainLayout)
    
    	addr := o.Address
    	if addr == "*" {
    		addr = ""
    	}
    
    	// Canonicalize the address and resolve a dynamic port if necessary
    	listener, err := net.Listen("tcp", fmt.Sprintf("%s:%d", addr, o.Port))
    	if err != nil {
    		log.Errorf("Unable to start ControlZ: %v", err)
    		return nil, err
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 21:22:53 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/net/dnsclient.go

    	return randInt() % n
    }
    
    // reverseaddr returns the in-addr.arpa. or ip6.arpa. hostname of the IP
    // address addr suitable for rDNS (PTR) record lookup or an error if it fails
    // to parse the IP address.
    func reverseaddr(addr string) (arpa string, err error) {
    	ip := ParseIP(addr)
    	if ip == nil {
    		return "", &DNSError{Err: "unrecognized address", Name: addr}
    	}
    	if ip.To4() != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/net/lookup_windows_test.go

    	testenv.MustHaveExternalNetwork(t)
    
    	addr, err := localIP()
    	if err != nil {
    		t.Errorf("failed to get local ip: %s", err)
    	}
    	names, err := LookupAddr(addr.String())
    	if err != nil {
    		t.Errorf("failed %s: %s", addr, err)
    	}
    	if len(names) == 0 {
    		t.Errorf("no results")
    	}
    	expected, err := lookupPTR(addr.String())
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. pkg/proxy/util/utils.go

    func AppendPortIfNeeded(addr string, port int32) string {
    	// Return if address is already in "ipv4:port" or "[ipv6]:port" format.
    	if _, _, err := net.SplitHostPort(addr); err == nil {
    		return addr
    	}
    
    	// Simply return for invalid case. This should be caught by validation instead.
    	ip := netutils.ParseIPSloppy(addr)
    	if ip == nil {
    		return addr
    	}
    
    	// Append port to address.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. src/syscall/syscall_linux.go

    	return ptracePeek(PTRACE_PEEKDATA, pid, addr, out)
    }
    
    func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (count int, err error) {
    	// As for ptracePeek, we need to align our accesses to deal
    	// with the possibility of straddling an invalid page.
    
    	// Leading edge.
    	n := 0
    	if addr%sizeofPtr != 0 {
    		var buf [sizeofPtr]byte
    		err = ptracePtr(peekReq, pid, addr-addr%sizeofPtr, unsafe.Pointer(&buf[0]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  6. pkg/kubelet/apis/podresources/client.go

    	addr, dialer, err := util.GetAddressAndDialer(socket)
    	if err != nil {
    		return nil, nil, err
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), connectionTimeout)
    	defer cancel()
    
    	conn, err := grpc.DialContext(ctx, addr,
    		grpc.WithTransportCredentials(insecure.NewCredentials()),
    		grpc.WithContextDialer(dialer),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/crypto/tls/tls.go

    		defer cancel()
    	}
    
    	rawConn, err := netDialer.DialContext(ctx, network, addr)
    	if err != nil {
    		return nil, err
    	}
    
    	colonPos := strings.LastIndex(addr, ":")
    	if colonPos == -1 {
    		colonPos = len(addr)
    	}
    	hostname := addr[:colonPos]
    
    	if config == nil {
    		config = defaultConfig()
    	}
    	// If no ServerName is set, infer the ServerName
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/deadstore.go

    					// value to keep things simple.
    					used.Add(n)
    					changed = true
    				}
    			}
    		}
    		if node == nil {
    			return
    		}
    		if addr[v] == nil {
    			// The address of an auto reaches this op.
    			addr[v] = node
    			changed = true
    			return
    		}
    		if addr[v] != node {
    			// This doesn't happen in practice, but catch it just in case.
    			used.Add(node)
    			changed = true
    		}
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. pkg/test/echo/server/forwarder/http.go

    	newConn := func() *http.Transport {
    		dialContext := func(ctx context.Context, network, addr string) (net.Conn, error) {
    			return newDialer(cfg).DialContext(ctx, network, addr)
    		}
    		if len(cfg.UDS) > 0 {
    			dialContext = func(ctx context.Context, network, addr string) (net.Conn, error) {
    				return newDialer(cfg).DialContext(ctx, "unix", cfg.UDS)
    			}
    		}
    		out := &http.Transport{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. pilot/test/xdstest/endpoints.go

    		}
    
    		for _, lbEp := range ep.LbEndpoints {
    			addr := util.GetEndpointHost(lbEp)
    			found := false
    			for _, wantLbEp := range want[i].LbEps {
    				if addr == wantLbEp.Address {
    					found = true
    
    					// Now compare the weight.
    					if lbEp.GetLoadBalancingWeight().Value != wantLbEp.Weight {
    						return fmt.Errorf("unexpected weight for endpoint %s: got %v, want %v",
    							addr, lbEp.GetLoadBalancingWeight().Value, wantLbEp.Weight)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top