Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for adir (0.31 sec)

  1. src/net/http/serve_test.go

    	}))
    	if _, err := cst.c.Head(cst.ts.URL); err != nil {
    		t.Fatal(err)
    	}
    
    	host := cst.ts.Listener.Addr().String()
    	got := <-ch
    	if addr, ok := got.(net.Addr); !ok {
    		t.Errorf("local addr value = %T; want net.Addr", got)
    	} else if fmt.Sprint(addr) != host {
    		t.Errorf("local addr = %v; want %v", addr, host)
    	}
    }
    
    // https://golang.org/issue/15960
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. src/sync/atomic/doc.go

    func SwapInt64(addr *int64, new int64) (old int64)
    
    // SwapUint32 atomically stores new into *addr and returns the previous *addr value.
    // Consider using the more ergonomic and less error-prone [Uint32.Swap] instead.
    func SwapUint32(addr *uint32, new uint32) (old uint32)
    
    // SwapUint64 atomically stores new into *addr and returns the previous *addr value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. internal/grid/debug.go

    			}
    		}
    		addr := l.Addr()
    		hosts = append(hosts, "http://"+addr.String())
    		listeners = append(listeners, l)
    	}
    	return
    }
    
    func startHTTPServer(listener net.Listener, handler http.Handler) (server *httptest.Server) {
    	server = httptest.NewUnstartedServer(handler)
    	server.Config.Addr = listener.Addr().String()
    	server.Listener = listener
    	server.Start()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. internal/http/listener_test.go

    					continue nextTest
    				}
    				t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
    			}
    		}
    
    		addr := listener.Addr()
    		if addr.String() != testCase.expectedAddr {
    			t.Fatalf("Test %d: addr: expected = %v, got = %v", i+1, testCase.expectedAddr, addr)
    		}
    
    		listener.Close()
    	}
    }
    
    func TestHTTPListenerAddrs(t *testing.T) {
    	if runtime.GOOS == "windows" {
    		t.Skip()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/ztunnel/configdump/workload.go

    	return nil
    }
    
    func waypointName(wl *ZtunnelWorkload, services []*ZtunnelService) string {
    	if wl.Waypoint == nil {
    		return "None"
    	}
    
    	for _, svc := range services {
    		for _, addr := range svc.Addresses {
    			if addr == wl.Waypoint.Destination {
    				return svc.Name
    			}
    		}
    	}
    
    	return "NA" // Shouldn't normally reach here
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/net_test.go

    	ztunnelServer := fixture.ztunnelServer
    	podMeta := metav1.ObjectMeta{
    		Name:      "foo",
    		Namespace: "bar",
    		UID:       "123",
    	}
    	podIP := netip.MustParseAddr("99.9.9.9")
    	podIPs := []netip.Addr{podIP}
    
    	fixture.ipsetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("99.9.9.9"),
    		uint8(unix.IPPROTO_TCP),
    		string(podMeta.UID),
    		false,
    	).Return(nil)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/cni-watcher_test.go

    	assert.Error(t, err)
    }
    
    func TestCNIPluginServer(t *testing.T) {
    	fakePodIP := "11.1.1.12"
    	_, addr, _ := net.ParseCIDR(fakePodIP + "/32")
    	valid := CNIPluginAddEvent{
    		Netns:        "/var/netns/foo",
    		PodName:      "pod-bingo",
    		PodNamespace: "funkyns",
    		IPs: []IPConfig{{
    			Address: *addr,
    		}},
    	}
    
    	setupLogging()
    	NodeName = "testnode"
    	ctx, cancel := context.WithCancel(context.Background())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. pilot/pkg/networking/util/util.go

    func ConvertAddressToCidr(addr string) *core.CidrRange {
    	cidr, err := AddrStrToCidrRange(addr)
    	if err != nil {
    		log.Errorf("failed to convert address %s to CidrRange: %v", addr, err)
    		return nil
    	}
    
    	return cidr
    }
    
    // AddrStrToCidrRange converts from string to CIDR prefix
    func AddrStrToPrefix(addr string) (netip.Prefix, error) {
    	if len(addr) == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top