Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEndlessWrite (0.2 sec)

  1. src/net/write_unix_test.go

    )
    
    // Test that a client can't trigger an endless loop of write system
    // calls on the server by shutting down the write side on the client.
    // Possibility raised in the discussion of https://golang.org/cl/71973.
    func TestEndlessWrite(t *testing.T) {
    	t.Parallel()
    	c := make(chan bool)
    	server := func(cs *TCPConn) error {
    		cs.CloseWrite()
    		<-c
    		return nil
    	}
    	client := func(ss *TCPConn) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.6K bytes
    - Viewed (0)
Back to top