Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fileConn (0.08 sec)

  1. src/net/mockserver_test.go

    func startTestSocketPeer(t testing.TB, conn Conn, op string, chunkSize, totalSize int) (func(t testing.TB), error) {
    	t.Helper()
    
    	if runtime.GOOS == "windows" {
    		// TODO(panjf2000): Windows has not yet implemented FileConn,
    		//		remove this when it's implemented in https://go.dev/issues/9503.
    		t.Fatalf("startTestSocketPeer is not supported on %s", runtime.GOOS)
    	}
    
    	f, err := conn.(interface{ File() (*os.File, error) }).File()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/net/sendfile_test.go

    		b.Fatalf("expected %d copied bytes, but got %d", dataSize, n)
    	}
    
    	cancel()
    }
    
    func BenchmarkSendFile(b *testing.B) {
    	if runtime.GOOS == "windows" {
    		// TODO(panjf2000): Windows has not yet implemented FileConn,
    		//		remove this when it's implemented in https://go.dev/issues/9503.
    		b.Skipf("skipping on %s", runtime.GOOS)
    	}
    
    	b.Run("file-to-tcp", func(b *testing.B) { benchmarkSendFile(b, "tcp") })
    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