Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for StateActive (0.17 sec)

  1. src/net/http/httptest/server.go

    				// never be used).
    				s.closeConn(c)
    			}
    		case http.StateActive:
    			if oldState, ok := s.conns[c]; ok {
    				if oldState != http.StateNew && oldState != http.StateIdle {
    					panic("invalid state transition")
    				}
    				s.conns[c] = cs
    			}
    		case http.StateIdle:
    			if oldState, ok := s.conns[c]; ok {
    				if oldState != http.StateActive {
    					panic("invalid state transition")
    				}
    				s.conns[c] = cs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:26:10 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. src/net/http/server.go

    	// send a request immediately. Connections begin at this
    	// state and then transition to either StateActive or
    	// StateClosed.
    	StateNew ConnState = iota
    
    	// StateActive represents a connection that has read 1 or more
    	// bytes of a request. The Server.ConnState hook for
    	// StateActive fires before the request has entered a handler
    	// and doesn't fire again until the request has been
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  3. src/net/http/serve_test.go

    		mustGet(ts.URL + "/")
    		mustGet(ts.URL + "/close")
    	}, StateNew, StateActive, StateIdle, StateActive, StateClosed)
    
    	wantLog(func() {
    		mustGet(ts.URL + "/")
    		mustGet(ts.URL+"/", "Connection", "close")
    	}, StateNew, StateActive, StateIdle, StateActive, StateClosed)
    
    	wantLog(func() {
    		mustGet(ts.URL + "/hijack")
    	}, StateNew, StateActive, StateHijacked)
    
    	wantLog(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  4. api/go1.3.txt

    pkg math/big, method (*Rat) MarshalText() ([]uint8, error)
    pkg math/big, method (*Rat) UnmarshalText([]uint8) error
    pkg net, type Dialer struct, KeepAlive time.Duration
    pkg net/http, const StateActive = 1
    pkg net/http, const StateActive ConnState
    pkg net/http, const StateClosed = 4
    pkg net/http, const StateClosed ConnState
    pkg net/http, const StateHijacked = 3
    pkg net/http, const StateHijacked ConnState
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 02 02:45:00 UTC 2014
    - 117K bytes
    - Viewed (0)
  5. src/net/http/h2_bundle.go

    	// "StateNew" state. We can't go directly to idle, though.
    	// Active means we read some data and anticipate a request. We'll
    	// do another Active when we get a HEADERS frame.
    	sc.setConnState(StateActive)
    	sc.setConnState(StateIdle)
    
    	if sc.srv.IdleTimeout > 0 {
    		sc.idleTimer = sc.srv.afterFunc(sc.srv.IdleTimeout, sc.onIdleTimer)
    		defer sc.idleTimer.Stop()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Server.ReadTimeout", Field, 0},
    		{"Server.TLSConfig", Field, 0},
    		{"Server.TLSNextProto", Field, 1},
    		{"Server.WriteTimeout", Field, 0},
    		{"ServerContextKey", Var, 7},
    		{"SetCookie", Func, 0},
    		{"StateActive", Const, 3},
    		{"StateClosed", Const, 3},
    		{"StateHijacked", Const, 3},
    		{"StateIdle", Const, 3},
    		{"StateNew", Const, 3},
    		{"StatusAccepted", Const, 0},
    		{"StatusAlreadyReported", Const, 7},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top