Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestHairpinInClose (0.15 sec)

  1. src/crypto/tls/conn_test.go

    // the tls.Conn which is calling it.
    type hairpinConn struct {
    	net.Conn
    	tlsConn *Conn
    }
    
    func (conn *hairpinConn) Close() error {
    	conn.tlsConn.ConnectionState()
    	return nil
    }
    
    func TestHairpinInClose(t *testing.T) {
    	// This tests that the underlying net.Conn can call back into the
    	// tls.Conn when being closed without deadlocking.
    	client, server := localPipe(t)
    	defer server.Close()
    	defer client.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:35:01 UTC 2023
    - 10.5K bytes
    - Viewed (0)
Back to top