Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for StateHijacked (0.3 sec)

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

    				if oldState != http.StateActive {
    					panic("invalid state transition")
    				}
    				s.conns[c] = cs
    			}
    			if s.closed {
    				s.closeConn(c)
    			}
    		case http.StateHijacked, http.StateClosed:
    			// Remove c from the set of tracked conns and decrement it from the
    			// waitgroup, unless it was previously removed.
    			if _, ok := s.conns[c]; ok {
    				delete(s.conns, c)
    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

    	// for a new request. Connections transition from StateIdle
    	// to either StateActive or StateClosed.
    	StateIdle
    
    	// StateHijacked represents a hijacked connection.
    	// This is a terminal state. It does not transition to StateClosed.
    	StateHijacked
    
    	// StateClosed represents a closed connection.
    	// This is a terminal state. Hijacked connections do not
    	// transition to StateClosed.
    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. api/go1.3.txt

    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
    pkg net/http, const StateIdle = 2
    pkg net/http, const StateIdle ConnState
    pkg net/http, const StateNew = 0
    pkg net/http, const StateNew ConnState
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 02 02:45:00 UTC 2014
    - 117K bytes
    - Viewed (0)
  4. src/net/http/serve_test.go

    	}, StateNew, StateActive, StateIdle, StateActive, StateClosed)
    
    	wantLog(func() {
    		mustGet(ts.URL + "/hijack")
    	}, StateNew, StateActive, StateHijacked)
    
    	wantLog(func() {
    		mustGet(ts.URL + "/hijack-panic")
    	}, StateNew, StateActive, StateHijacked)
    
    	wantLog(func() {
    		c, err := net.Dial("tcp", ts.Listener.Addr().String())
    		if err != nil {
    			t.Fatal(err)
    		}
    		c.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  5. src/net/http/h2_bundle.go

    }
    
    // setConnState calls the net/http ConnState hook for this connection, if configured.
    // Note that the net/http package does StateNew and StateClosed for us.
    // There is currently no plan for StateHijacked or hijacking HTTP/2 connections.
    func (sc *http2serverConn) setConnState(state ConnState) {
    	if sc.hs.ConnState != nil {
    		sc.hs.ConnState(sc.conn, state)
    	}
    }
    
    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.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},
    		{"StatusBadGateway", Const, 0},
    		{"StatusBadRequest", Const, 0},
    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