Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 804 for _flush (0.34 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          if (byteCount > length) writeContinuationFrames(streamId, byteCount - length)
        }
      }
    
      @Throws(IOException::class)
      fun flush() {
        this.withLock {
          if (closed) throw IOException("closed")
          sink.flush()
        }
      }
    
      @Throws(IOException::class)
      fun rstStream(
        streamId: Int,
        errorCode: ErrorCode,
      ) {
        this.withLock {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. src/net/http/responsecontroller.go

    }
    
    type rwUnwrapper interface {
    	Unwrap() ResponseWriter
    }
    
    // Flush flushes buffered data to the client.
    func (c *ResponseController) Flush() error {
    	rw := c.rw
    	for {
    		switch t := rw.(type) {
    		case interface{ FlushError() error }:
    			return t.FlushError()
    		case Flusher:
    			t.Flush()
    			return nil
    		case rwUnwrapper:
    			rw = t.Unwrap()
    		default:
    			return errNotSupported()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flushwriter/writer_test.go

    	w := &writerWithFlush{}
    	fw := Wrap(w)
    	for i := 0; i < 10; i++ {
    		_, err := fw.Write([]byte("Test write"))
    		if err != nil {
    			t.Errorf("Unexpected error while writing with flush writer: %v", err)
    		}
    	}
    	if w.flushCount != 10 {
    		t.Errorf("Flush not called the expected number of times. Actual: %d", w.flushCount)
    	}
    	if w.writeCount != 10 {
    		t.Errorf("Write not called the expected number of times. Actual: %d", w.writeCount)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 16:09:42 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  4. pilot/pkg/model/typed_xds_cache_test.go

    	// after adding an entry with the same key, previous indexes are correctly cleaned
    	c.Add(secondEntry.Key(), secondEntry, req, res)
    
    	assert.Equal(t, cache.store.Len(), 1)
    
    	// Flush the cache and validate the index is cleaned.
    	cache.Flush()
    	assert.Equal(t, cache.indexLength(), 1)
    
    	assert.Equal(t, cache.configIndexSnapshot(), map[ConfigHash]sets.Set[uint64]{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 29 20:35:31 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/stream/EncodedStreamTest.groovy

        def "can encode and decode an empty stream"() {
            def outputStream = new ByteArrayOutputStream()
            def encoder = new EncodedStream.EncodedOutput(outputStream)
    
            when:
            encoder.flush()
    
            then:
            def inputStream = new ByteArrayInputStream(outputStream.toByteArray())
            def decoder = new EncodedStream.EncodedInput(inputStream)
            decoder.read() < 0
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/ExclusiveCacheAccessingWorkerTest.groovy

            cacheAccessWorker.flush()
    
            then:
            counter == 3
    
            cleanup:
            cacheAccessWorker?.stop()
        }
    
        def "flush rethrows action failure"() {
            def failure = new RuntimeException()
            cacheAccessWorker.enqueue { throw failure }
    
            when:
            start(cacheAccessWorker)
            cacheAccessWorker.flush()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/sink/OutputEventRendererTest.groovy

            renderer.onOutput(event('info', LogLevel.INFO, 1L))
            renderer.onOutput(event('error', LogLevel.ERROR, 1L))
            renderer.onOutput(complete('status'))
            renderer.restore(snapshot) // close console to flush
    
            then:
            console.buildOutputArea.toString().readLines() == ['', '{header}> description{info} status{normal}', 'info', '{error}error', '{normal}']
            outputs.stdOut == ''
            outputs.stdErr == ''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 19:25:32 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/cli/ExceptionReportingActionTest.groovy

            then:
            1 * target.execute(listener)
            1 * loggingOutput.flush()
            0 * _._
        }
    
        def "reports exception thrown by Action"() {
            def failure = new RuntimeException()
    
            when:
            action.execute(listener)
    
            then:
            1 * target.execute(listener) >> { throw failure }
            1 * loggingOutput.flush()
            1 * reporter.execute(failure)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/registry/generic/rest/streamer.go

    	if len(contentType) == 0 {
    		contentType = resp.Header.Get("Content-Type")
    		if len(contentType) > 0 {
    			contentType = strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
    		}
    	}
    	flush = s.Flush
    	stream = resp.Body
    	return
    }
    
    // PreventRedirects is a redirect checker that prevents the client from following a redirect.
    func PreventRedirects(_ *http.Request, _ []*http.Request) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 16:43:09 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go

    	FF1                           = 0x2000
    	FFDLY                         = 0x2000
    	FLUSHBAND                     = 0x40
    	FLUSHLOW                      = 0x8
    	FLUSHO                        = 0x100000
    	FLUSHR                        = 0x1
    	FLUSHRW                       = 0x3
    	FLUSHW                        = 0x2
    	F_CLOSEM                      = 0xa
    	F_DUP2FD                      = 0xe
    	F_DUPFD                       = 0x0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 52.4K bytes
    - Viewed (0)
Back to top