Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for permitAddressReuse (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/serving_windows.go

    	return fmt.Errorf("port reuse is not supported on Windows")
    }
    
    // Windows supports SO_REUSEADDR, but it may cause undefined behavior, as
    // there is no protection against port hijacking.
    func permitAddressReuse(network, addr string, conn syscall.RawConn) error {
    	return fmt.Errorf("address reuse is not supported on Windows")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/serving_unix.go

    		if err := syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, unix.SO_REUSEPORT, 1); err != nil {
    			klog.Warningf("failed to set SO_REUSEPORT on socket: %v", err)
    		}
    	})
    }
    
    func permitAddressReuse(network, addr string, conn syscall.RawConn) error {
    	return conn.Control(func(fd uintptr) {
    		if err := syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, unix.SO_REUSEADDR, 1); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/serving.go

    		c := net.ListenConfig{}
    
    		ctls := multipleControls{}
    		if s.PermitPortSharing {
    			ctls = append(ctls, permitPortReuse)
    		}
    		if s.PermitAddressSharing {
    			ctls = append(ctls, permitAddressReuse)
    		}
    		if len(ctls) > 0 {
    			c.Control = ctls.Control
    		}
    
    		s.Listener, s.BindPort, err = CreateListener(s.BindNetwork, addr, c)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 13:08:18 UTC 2024
    - 15.9K bytes
    - Viewed (0)
Back to top