Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 88 for flushed (0.35 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit_test.go

    	if _, ok := actual.(http.CloseNotifier); !ok {
    		t.Errorf("Expected http.ResponseWriter to implement http.CloseNotifier")
    	}
    	if _, ok := actual.(http.Flusher); !ok {
    		t.Errorf("Expected the wrapper to implement http.Flusher")
    	}
    	if _, ok := actual.(http.Hijacker); ok {
    		t.Errorf("Expected http.ResponseWriter not to implement http.Hijacker")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 22.6K bytes
    - Viewed (0)
  2. src/net/http/clientserver_test.go

    func TestH12_FlushBeforeBody(t *testing.T) {
    	h12Compare{Handler: func(w ResponseWriter, r *Request) {
    		w.(Flusher).Flush()
    		io.WriteString(w, "foo")
    	}}.run(t)
    }
    
    func TestH12_FlushMidBody(t *testing.T) {
    	h12Compare{Handler: func(w ResponseWriter, r *Request) {
    		io.WriteString(w, "foo")
    		w.(Flusher).Flush()
    		io.WriteString(w, "bar")
    	}}.run(t)
    }
    
    func TestH12_Head_ExplicitLen(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  3. src/cmd/trace/gen.go

    				Resource: trace.GCP,
    				Stack:    ctx.Stack(viewerFrames(ar.stack)),
    				EndStack: ctx.Stack(viewerFrames(ev.Stack())),
    			})
    		}
    		delete(g.ranges, r.Name)
    	}
    }
    
    // Finish flushes any outstanding ranges at the end of the trace.
    func (g *globalRangeGenerator) Finish(ctx *traceContext) {
    	for name, ar := range g.ranges {
    		if !strings.Contains(name, "GC") {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. src/cmd/internal/test2json/test2json.go

    		if c == '\n' {
    			return i, 1
    		}
    		if c == marker && i > 0 { // test -v=json emits ^V at start of framing lines
    			return i, 0
    		}
    	}
    	return -1, 0
    }
    
    // flush flushes the line buffer.
    func (l *lineBuffer) flush() {
    	if len(l.b) > 0 {
    		// Must be a line without a \n, so a partial line.
    		l.part(l.b)
    		l.b = l.b[:0]
    	}
    }
    
    var benchmark = []byte("Benchmark")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 14.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modfetch/codehost/git_test.go

    }
    
    // A testWriter is an io.Writer that writes to a test's log.
    //
    // The writer batches written data until the last byte of a write is a newline
    // character, then flushes the batched data as a single call to Logf.
    // Any remaining unflushed data is logged during Cleanup.
    type testWriter struct {
    	t testing.TB
    
    	mu  sync.Mutex
    	buf bytes.Buffer
    }
    
    func newTestWriter(t testing.TB) *testWriter {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 19:46:23 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  6. src/compress/flate/deflate_test.go

    						t.Errorf("i=%d, firstN=%d, flush=%t: Write: %v", i, firstN, flush, err)
    						continue outer
    					}
    					if !flush {
    						continue
    					}
    					if err := w.Flush(); err != nil {
    						t.Errorf("i=%d, firstN=%d, flush=%t: Flush: %v", i, firstN, flush, err)
    						continue outer
    					}
    				}
    				if err := w.Close(); err != nil {
    					t.Errorf("i=%d, firstN=%d, flush=%t: Close: %v", i, firstN, flush, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  7. pkg/proxy/ipvs/ipset/ipset.go

    		}
    	} else {
    		return false, fmt.Errorf("error testing entry %s: %v (%s)", entry, err, out)
    	}
    }
    
    // FlushSet deletes all entries from a named set.
    func (runner *runner) FlushSet(set string) error {
    	if _, err := runner.exec.Command(IPSetCmd, "flush", set).CombinedOutput(); err != nil {
    		return fmt.Errorf("error flushing set: %s, error: %v", set, err)
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  8. cmd/admin-bucket-handlers.go

    				return
    			}
    			if len(diffCh) == 0 {
    				// Flush if nothing is queued
    				w.(http.Flusher).Flush()
    			}
    		case <-keepAliveTicker.C:
    			if len(diffCh) > 0 {
    				continue
    			}
    			if _, err := w.Write([]byte(" ")); err != nil {
    				return
    			}
    			w.(http.Flusher).Flush()
    		case <-ctx.Done():
    			return
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    			fnName             string
    			abi                string
    			localSize, argSize int
    			wroteSP            bool
    			noframe            bool
    			haveRetArg         bool
    			retLine            []int
    		)
    
    		flushRet := func() {
    			if fn != nil && fn.vars["ret"] != nil && !haveRetArg && len(retLine) > 0 {
    				v := fn.vars["ret"]
    				resultStr := fmt.Sprintf("%d-byte ret+%d(FP)", v.size, v.off)
    				if abi == "ABIInternal" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  10. src/runtime/mspanset.go

    		if spineLen <= uintptr(head)/spanSetBlockEntries {
    			// We're racing with a spine growth and the allocation of
    			// a new block (and maybe a new spine!), and trying to grab
    			// the span at the index which is currently being pushed.
    			// Instead of spinning, let's just notify the caller that
    			// there's nothing currently here. Spinning on this is
    			// almost definitely not worth it.
    			return nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top