Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for closeWrite (0.1 sec)

  1. src/crypto/tls/tls_test.go

    			return fmt.Errorf("Read data = %q; want nothing", data)
    		}
    
    		if err := srv.CloseWrite(); err != nil {
    			return fmt.Errorf("server CloseWrite: %v", err)
    		}
    
    		// Wait for clientCloseWrite to finish, so we know we
    		// tested the CloseWrite before we defer the
    		// sconn.Close above, which would also cause the
    		// client to unblock like CloseWrite.
    		<-clientDoneChan
    		return nil
    	}
    
    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

    	return alertErr
    }
    
    var errEarlyCloseWrite = errors.New("tls: CloseWrite called before handshake complete")
    
    // CloseWrite shuts down the writing side of the connection. It should only be
    // called once the handshake has completed and does not call CloseWrite on the
    // underlying connection. Most callers should just use [Conn.Close].
    func (c *Conn) CloseWrite() error {
    	if !c.isHandshakeComplete.Load() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top