Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newConn (0.09 sec)

  1. src/net/http/server.go

    }
    
    // debugServerConnections controls whether all server connections are wrapped
    // with a verbose logging wrapper.
    const debugServerConnections = false
    
    // Create new connection from rwc.
    func (srv *Server) newConn(rwc net.Conn) *conn {
    	c := &conn{
    		server: srv,
    		rwc:    rwc,
    	}
    	if debugServerConnections {
    		c.rwc = newLoggingConn("server", c.rwc)
    	}
    	return c
    }
    
    type readResult struct {
    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

    	// our real tests. This idle connection used to block forever
    	// in the TLS handshake, preventing future connections from
    	// being accepted. It may prevent future accidental blocking
    	// in newConn.
    	idleConn, err := net.Dial("tcp", ts.Listener.Addr().String())
    	if err != nil {
    		t.Fatalf("Dial: %v", err)
    	}
    	defer idleConn.Close()
    
    	if !strings.HasPrefix(ts.URL, "https://") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top