Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 76 for closeFn (0.09 sec)

  1. cmd/admin-handlers-users.go

    	if objectAPI == nil {
    		return
    	}
    	// Initialize a zip writer which will provide a zipped content
    	// of bucket metadata
    	zipWriter := zip.NewWriter(w)
    	defer zipWriter.Close()
    	rawDataFn := func(r io.Reader, filename string, sz int) error {
    		header, zerr := zip.FileInfoHeader(dummyFileInfo{
    			name:    filename,
    			size:    int64(sz),
    			mode:    0o600,
    			modTime: time.Now(),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 17:19:04 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    	// For names, find out whether they are integer constants.
    	// We used to look at specific warning or error messages here, but that tied the
    	// behavior too closely to specific versions of the compilers.
    	// Instead, arrange that we can infer what we need from only the presence or absence
    	// of an error on a specific line.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    				Key:       entry.Name,
    				Size:      entry.Size,
    				ModTime:   entry.ModTime,
    				VersionID: entry.VersionID,
    				Content:   gr,
    				Headers:   make(http.Header),
    				Close: func() {
    					gr.Close()
    				},
    			}
    
    			opts, err := batchReplicationOpts(ctx, "", gr.ObjInfo)
    			if err != nil {
    				batchLogIf(ctx, err)
    				continue
    			}
    
    			for k, vals := range opts.Header() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 56K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			want:           framework.NewPostFilterResultWithNominatedNode("node-b"),
    			expectedPods:   []string{"p-b1"},
    		},
    		{
    			name: "Scheduler extenders allow only node1, otherwise node3 would have been chosen",
    			pod:  st.MakePod().Name("p").UID("p").Namespace(v1.NamespaceDefault).Priority(highPriority).Req(veryLargeRes).PreemptionPolicy(v1.PreemptLowerPriority).Obj(),
    			pods: []*v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. src/cmd/go/go_test.go

    			src, err := os.Open(testExe)
    			if err != nil {
    				log.Fatal(err)
    			}
    			defer src.Close()
    
    			dst, err := os.OpenFile(testGo, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0o777)
    			if err != nil {
    				log.Fatal(err)
    			}
    
    			_, err = io.Copy(dst, src)
    			if closeErr := dst.Close(); err == nil {
    				err = closeErr
    			}
    			if err != nil {
    				log.Fatal(err)
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  6. src/runtime/mgcscavenge.go

    		// to the scheduler in case of e.g. preemption. A larger value means
    		// that the overheads of scavenging are better amortized, so better
    		// scavenging throughput.
    		//
    		// The current value is chosen assuming a cost of ~10µs/physical page
    		// (this is somewhat pessimistic), which implies a worst-case latency of
    		// about 160µs for 4 KiB physical pages. The current value is biased
    		// toward latency over throughput.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  7. cmd/kubelet/app/server.go

    		// Kubelet needs to be able to recover from stale http connections.
    		// HTTP2 has a mechanism to detect broken connections by sending periodical pings.
    		// HTTP1 only can have one persistent connection, and it will close all Idle connections
    		// once the Kubelet heartbeat fails. However, since there are many edge cases that we can't
    		// control, users can still opt-in to the previous behavior for closing the connections by
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  8. pkg/kubelet/pod_workers_test.go

    }
    
    func (item *WorkChannelItem) Hold() {
    	item.lock.Lock()
    	defer item.lock.Unlock()
    	item.pause = true
    }
    
    func (item *WorkChannelItem) Close() {
    	item.lock.Lock()
    	defer item.lock.Unlock()
    	if item.out != nil {
    		close(item.out)
    		item.out = nil
    	}
    }
    
    // Release blocks until all work is passed on the chain
    func (item *WorkChannelItem) Release() {
    	item.lock.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  9. cmd/sts-handlers_test.go

    	}
    	defer contentReader.Close()
    
    	expContent, err := io.ReadAll(contentReader)
    	if err != nil {
    		c.Fatalf("export %d: Unable to read exported content: %v", caseNum, err)
    	}
    
    	return expContent
    }
    
    type dummyCloser struct {
    	io.Reader
    }
    
    func (d dummyCloser) Close() error { return nil }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 18:45:50 UTC 2024
    - 90K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modload/load.go

    // ImportFromFiles adds modules to the build list as needed
    // to satisfy the imports in the named Go source files.
    //
    // Errors in missing dependencies are silenced.
    //
    // TODO(bcmills): Silencing errors seems off. Take a closer look at this and
    // figure out what the error-reporting actually ought to be.
    func ImportFromFiles(ctx context.Context, gofiles []string) {
    	rs := LoadModFile(ctx)
    
    	tags := imports.Tags()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
Back to top