Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 263 for flushed (0.24 sec)

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

    }
    
    func (wr outerWithCloseNotifyAndFlush) Flush() {
    	if flusher, ok := wr.UserProvidedDecorator.(http.Flusher); ok {
    		flusher.Flush()
    		return
    	}
    
    	wr.InnerCloseNotifierFlusher.Flush()
    }
    
    //lint:file-ignore SA1019 Keep supporting deprecated http.CloseNotifier
    var _ http.CloseNotifier = outerWithCloseNotifyFlushAndHijack{}
    var _ http.Flusher = outerWithCloseNotifyFlushAndHijack{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 7K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/FlushConsoleListener.java

    import org.gradle.internal.logging.events.OutputEvent;
    import org.gradle.internal.logging.events.OutputEventListener;
    import org.gradle.internal.logging.events.UpdateNowEvent;
    
    /**
     * Flushes the console output. Used when no other listener in the chain flushes the console.
     */
    public class FlushConsoleListener implements OutputEventListener {
        private final OutputEventListener delegate;
        private final Console console;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/responsewriter/wrapper_test.go

    	// the http.ResponseWriter object for both http/1.x and http2
    	// implement http.Flusher and http.CloseNotifier
    	if _, ok := w.(http.Flusher); !ok {
    		t.Errorf("Expected the http.ResponseWriter object to implement http.Flusher")
    	}
    
    	//nolint:staticcheck // SA1019
    	if _, ok := w.(http.CloseNotifier); !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 12:58:53 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  4. doc/next/6-stdlib/99-minor/runtime/trace/65319.md

    <!-- go.dev/issue/65319 -->
    The runtime now explicitly flushes trace data when a program crashes due to an
    uncaught panic. This means that more complete trace data will be available in a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:37:09 UTC 2024
    - 241 bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/watch.go

    	defer func() {
    		if s.MemoryAllocator != nil {
    			runtime.AllocatorPool.Put(s.MemoryAllocator)
    		}
    	}()
    
    	flusher, ok := w.(http.Flusher)
    	if !ok {
    		err := fmt.Errorf("unable to start watch - can't get http.Flusher: %#v", w)
    		utilruntime.HandleError(err)
    		s.Scope.err(errors.NewInternalError(err), w, req)
    		return
    	}
    
    	framer := s.Framer.NewFrameWriter(w)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 16:37:25 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/net/http/serve_test.go

    					return errors.New("header appeared from after WriteHeader")
    				}
    				return nil
    			},
    		},
    		{
    			name: "flush then write",
    			handler: func(rw ResponseWriter, r *Request) {
    				rw.(Flusher).Flush()
    				rw.Write([]byte("post-flush"))
    				rw.Header().Set("Too-Late", "Write already wrote headers")
    			},
    			check: func(got, logs string) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top