Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 194 for sendFile (0.33 sec)

  1. src/internal/poll/sendfile.go

    Damien Neil <******@****.***> 1714071225 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 268 bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ParallelDownloadsIntegrationTest.groovy

                blockingServer.get(m1.pom.path).sendFile(m1.pom.file),
                blockingServer.get(m2.pom.path).sendFile(m2.pom.file),
                blockingServer.get(m3.pom.path).sendFile(m3.pom.file),
                blockingServer.get(m4.pom.path).sendFile(m4.pom.file))
            blockingServer.expectConcurrent(
                blockingServer.get(m1.artifact.path).sendFile(m1.artifact.file),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 17:10:15 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. src/internal/poll/sendfile_bsd.go

    package poll
    
    import "syscall"
    
    // maxSendfileSize is the largest chunk size we ask the kernel to copy
    // at a time.
    const maxSendfileSize int = 4 << 20
    
    // SendFile wraps the sendfile system call.
    func SendFile(dstFD *FD, src int, pos, remain int64) (written int64, err error, handled bool) {
    	defer func() {
    		TestHookDidSendFile(dstFD, src, written, err, handled)
    	}()
    	if err := dstFD.writeLock(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/internal/poll/sendfile_linux.go

    package poll
    
    import "syscall"
    
    // maxSendfileSize is the largest chunk size we ask the kernel to copy
    // at a time.
    const maxSendfileSize int = 4 << 20
    
    // SendFile wraps the sendfile system call.
    func SendFile(dstFD *FD, src int, remain int64) (written int64, err error, handled bool) {
    	defer func() {
    		TestHookDidSendFile(dstFD, src, written, err, handled)
    	}()
    	if err := dstFD.writeLock(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. src/net/sendfile_test.go

    		if called {
    			t.Error("internal/poll.SendFile called multiple times, want one call")
    		}
    		called = true
    		gotHandled = handled
    		gotFD = dstFD
    	}
    	f()
    	if !called {
    		t.Error("internal/poll.SendFile was not called, want it to be")
    		return
    	}
    	if !gotHandled {
    		t.Error("internal/poll.SendFile did not handle the write, want it to")
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/net/sendfile_linux.go

    	"internal/poll"
    	"io"
    	"os"
    )
    
    const supportsSendfile = true
    
    // sendFile copies the contents of r to c using the sendfile
    // system call to minimize copies.
    //
    // if handled == true, sendFile returns the number (potentially zero) of bytes
    // copied and any non-EOF error.
    //
    // if handled == false, sendFile performed no work.
    func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. src/os/writeto_linux_test.go

    	sizes := []int{
    		1,
    		42,
    		1025,
    		syscall.Getpagesize() + 1,
    		32769,
    	}
    	t.Run("sendfile-to-unix", func(t *testing.T) {
    		for _, size := range sizes {
    			t.Run(strconv.Itoa(size), func(t *testing.T) {
    				testSendFile(t, "unix", int64(size))
    			})
    		}
    	})
    	t.Run("sendfile-to-tcp", func(t *testing.T) {
    		for _, size := range sizes {
    			t.Run(strconv.Itoa(size), func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperBadArchiveTest.groovy

            given:
            server.expect(server.head(GRADLE_BIN_ZIP))
            server.expect(server.get(GRADLE_BIN_ZIP).sendFile(badArchive))
            server.expect(server.get(GRADLE_BIN_HASH).missing())
            server.expect(server.get(GRADLE_BIN_ZIP).sendFile(badArchive))
            server.expect(server.get(GRADLE_BIN_ZIP).sendFile(distribution.binDistribution))
            server.start()
    
            prepareWrapperWithGradleBin()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. src/net/sendfile_unix_alt.go

    	"io"
    	"io/fs"
    	"syscall"
    )
    
    const supportsSendfile = true
    
    // sendFile copies the contents of r to c using the sendfile
    // system call to minimize copies.
    //
    // if handled == true, sendFile returns the number (potentially zero) of bytes
    // copied and any non-EOF error.
    //
    // if handled == false, sendFile performed no work.
    func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. src/internal/poll/sendfile_solaris.go

    //go:cgo_import_dynamic _ _ "libsocket.so"
    
    // maxSendfileSize is the largest chunk size we ask the kernel to copy
    // at a time.
    const maxSendfileSize int = 4 << 20
    
    // SendFile wraps the sendfile system call.
    func SendFile(dstFD *FD, src int, pos, remain int64) (written int64, err error, handled bool) {
    	defer func() {
    		TestHookDidSendFile(dstFD, src, written, err, handled)
    	}()
    	if err := dstFD.writeLock(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top