Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for sendFile (0.37 sec)

  1. src/net/sendfile_windows.go

    	"io"
    	"os"
    	"syscall"
    )
    
    const supportsSendfile = true
    
    // sendFile copies the contents of r to c using the TransmitFile
    // system call to minimize copies.
    //
    // if handled == true, sendFile returns the number of bytes copied and any
    // non-EOF error.
    //
    // if handled == false, sendFile performed no work.
    func sendFile(fd *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.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperHttpIntegrationTest.groovy

            given:
            server.expect(server.head("/$TEST_DISTRIBUTION_URL"))
            prepareWrapper(getDefaultBaseUrl())
            server.expect(server.get("/$TEST_DISTRIBUTION_URL").sendFile(distribution.binDistribution))
    
            when:
            def result = wrapperExecuter.withTasks('hello').run()
    
            then:
            assertThat(result.output, containsString('hello'))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperHttpsIntegrationTest.groovy

            prepareWrapper(getAuthenticatedBaseUrl())
            server.expect(server.get("/$TEST_DISTRIBUTION_URL")
                .expectUserAgent(matchesNameAndVersion("gradlew", Download.UNKNOWN_VERSION))
                .sendFile(distribution.binDistribution))
    
            when:
            result = wrapperExecuter.withTasks('hello').run()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. src/internal/poll/sendfile_windows.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package poll
    
    import (
    	"io"
    	"syscall"
    )
    
    // SendFile wraps the TransmitFile call.
    func SendFile(fd *FD, src syscall.Handle, n int64) (written int64, err error) {
    	defer func() {
    		TestHookDidSendFile(fd, 0, written, err, written > 0)
    	}()
    	if fd.kind == kindPipe {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/net/sendfile_stub.go

    // license that can be found in the LICENSE file.
    
    //go:build !(linux || (darwin && !ios) || dragonfly || freebsd || solaris || windows)
    
    package net
    
    import "io"
    
    const supportsSendfile = false
    
    func sendFile(c *netFD, r io.Reader) (n int64, err error, handled bool) {
    	return 0, nil, false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 403 bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/artifactreuse/ArtifactResolutionQueryIntegrationTest.groovy

            def handler = blockingServer.expectConcurrentAndBlock(blockingServer.get(module.pom.path).sendFile(module.pom.file), blockingServer.get('/sync'))
            blockingServer.expect(blockingServer.get(module.artifact.path).sendFile(module.artifact.file))
    
            createDirs("query", "resolve")
            settingsFile << 'include "query", "resolve"'
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/posix/BUILD

    cc_library(
        name = "posix_filesystem_helper",
        srcs = ["posix_filesystem_helper.cc"],
        hdrs = ["posix_filesystem_helper.h"],
        deps = [":copy_file"],
    )
    
    # On Linux, we can copy files faster using `sendfile`. But not elsewhere.
    # Hence, this private library to select which implementation to use.
    cc_library(
        name = "copy_file",
        srcs = select({
            "//tensorflow:linux_x86_64": ["copy_file_linux.cc"],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 20:08:23 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperConcurrentDownloadTest.groovy

        @Rule BlockingHttpServer server = new BlockingHttpServer()
    
        def setup() {
            server.expect(server.head("/gradle-bin.zip"))
            server.expect(server.get("/gradle-bin.zip").sendFile(distribution.binDistribution))
            server.start()
        }
    
        @Issue("https://issues.gradle.org/browse/GRADLE-2699")
        def "concurrent downloads do not stomp over each other"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. .github/workflows/mint/nginx-4-node.conf

                          '$status $body_bytes_sent "$http_referer" '
                          '"$http_user_agent" "$http_x_forwarded_for"';
    
        access_log  /var/log/nginx/access.log  main;
        sendfile        on;
        keepalive_timeout  65;
    
        # include /etc/nginx/conf.d/*.conf;
    
        upstream minio {
            server minio1:9000 max_fails=1 fail_timeout=10s;
            server minio2:9000 max_fails=1 fail_timeout=10s;
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 16:52:29 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. src/os/zero_copy_linux.go

    	sc, err := f.SyscallConn()
    	if err != nil {
    		return
    	}
    
    	rerr := sc.Read(func(fd uintptr) (done bool) {
    		written, err, handled = poll.SendFile(pfd, int(fd), 1<<63-1)
    		return true
    	})
    
    	if err == nil {
    		err = rerr
    	}
    
    	return written, handled, wrapSyscallError("sendfile", err)
    }
    
    func (f *File) readFrom(r io.Reader) (written int64, handled bool, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top