Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for newConn (0.28 sec)

  1. src/crypto/tls/tls_test.go

    	// Also test CloseWrite being called before the handshake is
    	// finished:
    	{
    		ln2 := newLocalListener(t)
    		defer ln2.Close()
    
    		netConn, err := net.Dial("tcp", ln2.Addr().String())
    		if err != nil {
    			t.Fatal(err)
    		}
    		defer netConn.Close()
    		conn := Client(netConn, testConfig.Clone())
    
    		if err := conn.CloseWrite(); err != errEarlyCloseWrite {
    			t.Errorf("CloseWrite error = %v; want errEarlyCloseWrite", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  2. src/crypto/tls/conn.go

    func (c *Conn) SetWriteDeadline(t time.Time) error {
    	return c.conn.SetWriteDeadline(t)
    }
    
    // NetConn returns the underlying connection that is wrapped by c.
    // Note that writing to or reading from this connection directly will corrupt the
    // TLS session.
    func (c *Conn) NetConn() net.Conn {
    	return c.conn
    }
    
    // A halfConn represents one direction of the record layer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  3. src/os/os_test.go

    		"einstein":   {Data: []byte("Albert\n")},
    		"dir/newton": {Data: []byte("Sir Isaac\n")},
    	}
    	tmpDir = t.TempDir()
    	if err := CopyFS(tmpDir, fsys); err != nil {
    		t.Fatal("CopyFS:", err)
    	}
    	forceMFTUpdateOnWindows(t, tmpDir)
    	tmpFsys = DirFS(tmpDir)
    	if err := fstest.TestFS(tmpFsys, "william", "carl", "daVinci", "einstein", "dir/newton"); err != nil {
    		t.Fatal("TestFS:", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  4. src/runtime/pprof/pprof_test.go

    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    			mu.Lock()
    			mu.Unlock()
    		}()
    	}
    	wg.Wait()
    }
    
    func blockCond(t *testing.T) {
    	var mu sync.Mutex
    	c := sync.NewCond(&mu)
    	mu.Lock()
    	go func() {
    		awaitBlockedGoroutine(t, "sync.Cond.Wait", "blockCond", 1)
    		mu.Lock()
    		c.Signal()
    		mu.Unlock()
    	}()
    	c.Wait()
    	mu.Unlock()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top