Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for StateHijacked (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top