Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for addr1 (0.07 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. internal/http/listener_test.go

    				t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
    			}
    		}
    
    		addrs := listener.Addrs()
    		addrSet := set.NewStringSet()
    		for _, addr := range addrs {
    			addrSet.Add(addr.String())
    		}
    
    		if !addrSet.Equals(testCase.expectedAddrs) {
    			t.Fatalf("Test %d: addr: expected = %v, got = %v", i+1, testCase.expectedAddrs, addrs)
    		}
    
    		listener.Close()
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. 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)
  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/net/http/transport_test.go

    		t.Fatalf("after first response, expected %d idle conn cache keys; got %d", e, g)
    	}
    	addr := ts.Listener.Addr().String()
    	cacheKey := "|http|" + addr
    	if keys[0] != cacheKey {
    		t.Fatalf("Expected idle cache key %q; got %q", cacheKey, keys[0])
    	}
    	if e, g := 1, tr.IdleConnCountForTesting("http", addr); e != g {
    		t.Errorf("after first response, expected %d idle conns; got %d", e, g)
    	}
    
    	resch <- "res2"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  6. pkg/test/framework/components/istio/kube.go

    			return addrs[0], outcome, err
    		}, getAddressTimeout, getAddressDelay)
    		if err != nil {
    			return netip.AddrPort{}, err
    		}
    		addr = address.(netip.AddrPort)
    	} else {
    		name := types.NamespacedName{Name: eastWestIngressServiceName, Namespace: i.cfg.SystemNamespace}
    		addr = i.CustomIngressFor(primary, name, eastWestIngressIstioLabel).DiscoveryAddresses()[0]
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top