Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 10MB (0.02 sec)

  1. internal/http/response-recorder.go

    	lrw.bytesWritten += n
    	if lrw.ttfbBody == 0 {
    		lrw.ttfbBody = time.Now().UTC().Sub(lrw.StartTime)
    	}
    
    	if (lrw.LogErrBody && lrw.StatusCode >= http.StatusBadRequest) || lrw.LogAllBody {
    		// If body is > 10MB, drop it.
    		if lrw.bytesWritten+len(p) > 10<<20 {
    			lrw.LogAllBody = false
    			lrw.body = bytes.Buffer{}
    		} else {
    			// Always logging error responses.
    			lrw.body.Write(p)
    		}
    	}
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. cmd/object-api-multipart_test.go

    }
    
    // BenchmarkPutObjectPart10MbFS - Benchmark FS.PutObjectPart() for object size of 10MB.
    func BenchmarkPutObjectPart10MbFS(b *testing.B) {
    	benchmarkPutObjectPart(b, "FS", 10*humanize.MiByte)
    }
    
    // BenchmarkPutObjectPart10MbErasure - Benchmark Erasure.PutObjectPart() for object size of 10MB.
    func BenchmarkPutObjectPart10MbErasure(b *testing.B) {
    	benchmarkPutObjectPart(b, "Erasure", 10*humanize.MiByte)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 88.8K bytes
    - Viewed (0)
Back to top