Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 84 for flushed (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/responsewriter/fake.go

    // For HTTP2 an http.ResponseWriter object implements
    // http.Flusher and http.CloseNotifier.
    // It is used for testing purpose only
    type FakeResponseWriterFlusherCloseNotifier struct {
    	*FakeResponseWriter
    }
    
    func (fw *FakeResponseWriterFlusherCloseNotifier) Flush()                   {}
    func (fw *FakeResponseWriterFlusherCloseNotifier) CloseNotify() <-chan bool { return nil }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 01 19:58:11 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  2. cmd/listen-notification-handlers.go

    			if err != nil {
    				return
    			}
    			if len(mergeCh) == 0 {
    				// Flush if nothing is queued
    				w.(http.Flusher).Flush()
    			}
    			grid.PutByteBuffer(ev)
    		case <-emptyEventTicker:
    			if err := enc.Encode(struct{ Records []event.Event }{}); err != nil {
    				return
    			}
    			w.(http.Flusher).Flush()
    		case <-keepAliveTicker:
    			if _, err := w.Write([]byte(" ")); err != nil {
    				return
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/Console.java

        // TODO(ew): Consider whether this belongs in BuildProgressArea or here
        StyledLabel getStatusBar();
    
        /**
         * Flushes any pending updates. Updates may or may not be buffered, and this method should be called to finish rendering and pending updates, such as updating the status bar.
         */
        void flush();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. pkg/hbone/util.go

    		nr, err := src.Read(buf)
    		log.Debugf("read %v/%v", nr, err)
    		if nr > 0 { // before dealing with the read error
    			nw, ew := dst.Write(buf[0:nr])
    			log.Debugf("write %v/%v", nw, ew)
    			if f, ok := dst.(http.Flusher); ok {
    				f.Flush()
    			}
    			if nr != nw { // Should not happen
    				ew = io.ErrShortWrite
    			}
    			if ew != nil {
    				return
    			}
    		}
    		if err != nil {
    			// read is already closed - we need to close out
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go

    	}
    	return tw.w.Write(p)
    }
    
    func (tw *baseTimeoutWriter) Flush() {
    	tw.mu.Lock()
    	defer tw.mu.Unlock()
    
    	if tw.timedOut {
    		return
    	}
    
    	// the outer ResponseWriter object returned by WrapForHTTP1Or2 implements
    	// http.Flusher if the inner object (tw.w) implements http.Flusher.
    	tw.w.(http.Flusher).Flush()
    }
    
    func (tw *baseTimeoutWriter) WriteHeader(code int) {
    	tw.mu.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/httplog/httplog_test.go

    				if _, ok := w.(http.CloseNotifier); !ok {
    					t.Errorf("Expected the ResponseWriter object to implement http.CloseNotifier")
    				}
    				if _, ok := w.(http.Flusher); !ok {
    					t.Errorf("Expected the ResponseWriter object to implement http.Flusher")
    				}
    				if _, ok := w.(http.Hijacker); test.hijackable != ok {
    					t.Errorf("http.Hijacker does not match, want: %t, got: %t", test.hijackable, ok)
    				}
    			})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 05 18:05:09 UTC 2021
    - 6.2K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/outbuf_mmap.go

    //go:build unix
    
    package ld
    
    import (
    	"syscall"
    )
    
    // Mmap maps the output file with the given size. It unmaps the old mapping
    // if it is already mapped. It also flushes any in-heap data to the new
    // mapping.
    func (out *OutBuf) Mmap(filesize uint64) (err error) {
    	oldlen := len(out.buf)
    	if oldlen != 0 {
    		out.munmap()
    	}
    
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/BlockStore.java

         * until {@link #write(BlockPayload)} is called.
         */
        void attach(BlockPayload block);
    
        /**
         * Flushes any pending updates for this store.
         */
        void flush();
    
        interface Factory {
            Object create(Class<? extends BlockPayload> type);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. src/os/exec/lp_test.go

    // license that can be found in the LICENSE file.
    
    package exec
    
    import (
    	"testing"
    )
    
    var nonExistentPaths = []string{
    	"some-non-existent-path",
    	"non-existent-path/slashed",
    }
    
    func TestLookPathNotFound(t *testing.T) {
    	for _, name := range nonExistentPaths {
    		path, err := LookPath(name)
    		if err == nil {
    			t.Fatalf("LookPath found %q in $PATH", name)
    		}
    		if path != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 737 bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/outbuf_windows.go

    		return
    	}
    	// Apparently unmapping without flush may cause ACCESS_DENIED error
    	// (see issue 38440).
    	err := syscall.FlushViewOfFile(uintptr(unsafe.Pointer(&out.buf[0])), 0)
    	if err != nil {
    		Exitf("FlushViewOfFile failed: %v", err)
    	}
    	// Issue 44817: apparently the call below may be needed (according
    	// to the Windows docs) in addition to the FlushViewOfFile call
    	// above, " ... to flush all the dirty pages plus the metadata for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 01:59:25 UTC 2022
    - 2.3K bytes
    - Viewed (0)
Back to top