Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for activeConns (0.2 sec)

  1. src/net/http/h2_bundle.go

    }
    
    type http2serverInternalState struct {
    	mu          sync.Mutex
    	activeConns map[*http2serverConn]struct{}
    }
    
    func (s *http2serverInternalState) registerConn(sc *http2serverConn) {
    	if s == nil {
    		return // if the Server was used without calling ConfigureServer
    	}
    	s.mu.Lock()
    	s.activeConns[sc] = struct{}{}
    	s.mu.Unlock()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  2. pkg/proxy/ipvs/graceful_termination_test.go

    				Protocol: "tcp",
    				Port:     uint16(80),
    			},
    			rs: &utilipvs.RealServer{
    				Address:      netutils.ParseIPSloppy("10.0.0.1"),
    				Port:         uint16(80),
    				Weight:       100,
    				ActiveConn:   0,
    				InactiveConn: 0,
    			},
    			existingIPVS: &utilipvstest.FakeIPVS{
    				Services: map[utilipvstest.ServiceKey]*utilipvs.VirtualServer{
    					{
    						IP:       "1.1.1.1",
    						Port:     80,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 11K bytes
    - Viewed (0)
  3. pkg/proxy/ipvs/graceful_termination.go

    			if utilipvs.IsRsGracefulTerminationNeeded(rsToDelete.VirtualServer.Protocol) && rs.ActiveConn+rs.InactiveConn != 0 {
    				klog.V(5).InfoS("Skip deleting real server till all connection have expired", "realServer", rsToDelete, "activeConnection", rs.ActiveConn, "inactiveConnection", rs.InactiveConn)
    				return false, nil
    			}
    			klog.V(5).InfoS("Deleting real server", "realServer", rsToDelete)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. src/net/http/export_test.go

    	s.mu.Lock()
    	defer s.mu.Unlock()
    	for c := range s.activeConn {
    		st, unixSec := c.getState()
    		if unixSec == 0 || st != StateIdle {
    			return false
    		}
    	}
    	return true
    }
    
    func (s *Server) ExportAllConnsByState() map[ConnState]int {
    	states := map[ConnState]int{}
    	s.mu.Lock()
    	defer s.mu.Unlock()
    	for c := range s.activeConn {
    		st, _ := c.getState()
    		states[st] += 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. pkg/proxy/ipvs/util/ipvs.go

    }
    
    // RealServer is an user-oriented definition of an IPVS real server in its entirety.
    type RealServer struct {
    	Address      net.IP
    	Port         uint16
    	Weight       int
    	ActiveConn   int
    	InactiveConn int
    }
    
    func (rs *RealServer) String() string {
    	return net.JoinHostPort(rs.Address.String(), strconv.Itoa(int(rs.Port)))
    }
    
    // Equal check the equality of real server.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. pkg/proxy/ipvs/README.md

    ```shell
     # ipvsadm -ln
    IP Virtual Server version 1.2.1 (size=4096)
    Prot LocalAddress:Port Scheduler Flags
      -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
    TCP  10.0.0.1:443 rr persistent 10800
      -> 192.168.0.1:6443             Masq    1      1          0
    ```
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 02:32:29 UTC 2021
    - 18.8K bytes
    - Viewed (0)
  7. pkg/proxy/ipvs/util/ipvs_linux.go

    	if dst == nil {
    		return nil, errors.New("ipvs destination should not be empty")
    	}
    	return &RealServer{
    		Address:      dst.Address,
    		Port:         dst.Port,
    		Weight:       dst.Weight,
    		ActiveConn:   dst.ActiveConnections,
    		InactiveConn: dst.InactiveConnections,
    	}, nil
    }
    
    // toIPVSService converts a VirtualServer to the equivalent IPVS Service structure.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. src/net/http/server.go

    	}
    	return true
    }
    
    func (s *Server) trackConn(c *conn, add bool) {
    	s.mu.Lock()
    	defer s.mu.Unlock()
    	if s.activeConn == nil {
    		s.activeConn = make(map[*conn]struct{})
    	}
    	if add {
    		s.activeConn[c] = struct{}{}
    	} else {
    		delete(s.activeConn, c)
    	}
    }
    
    func (s *Server) idleTimeout() time.Duration {
    	if s.IdleTimeout != 0 {
    		return s.IdleTimeout
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  9. pkg/proxy/ipvs/proxier_test.go

    	rss := []*utilipvs.RealServer{
    		{
    			Address:      netutils.ParseIPSloppy("10.10.10.10"),
    			Port:         56,
    			ActiveConn:   0,
    			InactiveConn: 0,
    		},
    		{
    			Address:      netutils.ParseIPSloppy("11.11.11.11"),
    			Port:         56,
    			ActiveConn:   0,
    			InactiveConn: 0,
    		},
    	}
    	for _, rs := range rss {
    		fp.ipvs.AddRealServer(vs, rs)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 186.8K bytes
    - Viewed (0)
Back to top