Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testSendFile (0.29 sec)

  1. src/net/sendfile_test.go

    		t.Error("internal/poll.SendFile did not handle the write, want it to")
    		return
    	}
    	if &wantConn.(*TCPConn).fd.pfd != gotFD {
    		t.Error("internal.poll.SendFile called with unexpected FD")
    	}
    }
    
    func TestSendfile(t *testing.T) {
    	ln := newLocalListener(t, "tcp")
    	defer ln.Close()
    
    	errc := make(chan error, 1)
    	go func(ln Listener) {
    		// Wait for a connection.
    		conn, err := ln.Accept()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top