Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for Rischard (0.61 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

            }
    
            override fun timeout(): Timeout = source.timeout()
    
            @Throws(IOException::class)
            override fun close() {
              if (!cacheRequestClosed &&
                !discard(ExchangeCodec.DISCARD_STREAM_TIMEOUT_MILLIS, MILLISECONDS)
              ) {
                cacheRequestClosed = true
                cacheRequest.abort()
              }
              source.close()
            }
          }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. internal/bpool/bpool.go

    func (bp *BytePoolCap) Put(b []byte) {
    	if bp == nil {
    		return
    	}
    	select {
    	case bp.c <- b:
    		// buffer went back into pool
    	default:
    		// buffer didn't go back into pool, just discard
    	}
    }
    
    // Width returns the width of the byte arrays in this pool.
    func (bp *BytePoolCap) Width() (n int) {
    	if bp == nil {
    		return 0
    	}
    	return bp.w
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. internal/ioutil/ioutil_test.go

    	}
    }
    
    func TestCloseOnWriter(t *testing.T) {
    	writer := WriteOnClose(io.Discard)
    	if writer.HasWritten() {
    		t.Error("WriteOnCloser must not be marked as HasWritten")
    	}
    	writer.Write(nil)
    	if !writer.HasWritten() {
    		t.Error("WriteOnCloser must be marked as HasWritten")
    	}
    
    	writer = WriteOnClose(io.Discard)
    	writer.Close()
    	if !writer.HasWritten() {
    		t.Error("WriteOnCloser must be marked as HasWritten")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 02 11:02:31 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

            }
    
            // If the peer sends more data than we can handle, discard it and close the connection.
            if (flowControlError) {
              source.skip(remainingByteCount)
              closeLater(ErrorCode.FLOW_CONTROL_ERROR)
              return
            }
    
            // Discard data received after the stream is finished. It's probably a benign race.
            if (finished) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  5. src/archive/tar/reader.go

    	// one or more "header files" until it finds a "normal file".
    	format := FormatUSTAR | FormatPAX | FormatGNU
    	for {
    		// Discard the remainder of the file and any padding.
    		if err := discard(tr.r, tr.curr.physicalRemaining()); err != nil {
    			return nil, err
    		}
    		if _, err := tryReadFull(tr.r, tr.blk[:tr.pad]); err != nil {
    			return nil, err
    		}
    		tr.pad = 0
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

                    buf.append('\t').append("error:").append(escapeValue(e.getLocalizedMessage()).replaceAll("\\s", " "));
                    log(buf);
                }
            });
        }
    
        public void discard(final Object keyObj) {
            getCacheKey(keyObj).ifPresent(key -> {
                try {
                    final StatsObject data = statsCache.getIfPresent(key);
                    if (data != null) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt

                type == null -> KtConstantValueFactory.createConstantValue(value, psi as? KtElement)
                type.isBoolean -> KtConstantValue.KtBooleanConstantValue(value as Boolean, expression)
                type.isChar -> KtConstantValue.KtCharConstantValue((value as? Char) ?: (value as Number).toInt().toChar(), expression)
                type.isByte -> KtConstantValue.KtByteConstantValue((value as Number).toByte(), expression)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  8. cmd/metacache.go

    	if m == nil {
    		return false
    	}
    	cache := m
    	switch {
    	case !cache.finished() && time.Since(cache.lastUpdate) > metacacheMaxRunningAge:
    		// Not finished and update for metacacheMaxRunningAge, discard it.
    		return false
    	case cache.finished() && time.Since(cache.lastHandout) > 5*metacacheMaxClientWait:
    		// Keep for 15 minutes after we last saw the client.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. src/archive/tar/tar_test.go

    		for _, v := range vectors {
    			b.Run(v.label, func(b *testing.B) {
    				b.ReportAllocs()
    				for i := 0; i < b.N; i++ {
    					// Writing to io.Discard because we want to
    					// test purely the writer code and not bring in disk performance into this.
    					tw := NewWriter(io.Discard)
    					for _, file := range v.files {
    						if err := tw.WriteHeader(file.hdr); err != nil {
    							b.Errorf("unexpected WriteHeader error: %v", err)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  10. cmd/admin-handlers-site-replication.go

    }
    
    // SiteReplicationDevNull - everything goes to io.Discard
    // [POST] /minio/admin/v3/site-replication/devnull
    func (a adminAPIHandlers) SiteReplicationDevNull(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	globalSiteNetPerfRX.Connect()
    	defer globalSiteNetPerfRX.Disconnect()
    
    	connectTime := time.Now()
    	for {
    		n, err := io.CopyN(xioutil.Discard, r.Body, 128*humanize.KiByte)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 09:40:39 GMT 2024
    - 19.4K bytes
    - Viewed (0)
Back to top