Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for limits (0.15 sec)

  1. src/archive/zip/struct.go

    	creatorUnix   = 3
    	creatorNTFS   = 11
    	creatorVFAT   = 14
    	creatorMacOSX = 19
    
    	// Version numbers.
    	zipVersion20 = 20 // 2.0
    	zipVersion45 = 45 // 4.5 (reads and writes zip64 archives)
    
    	// Limits for non zip64 files.
    	uint16max = (1 << 16) - 1
    	uint32max = (1 << 32) - 1
    
    	// Extra header IDs.
    	//
    	// IDs 0..31 are reserved for official use by PKWARE.
    	// IDs above that range are defined by third-party vendors.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  2. cmd/handler-api.go

    	if runtime.GOOS == "linux" {
    		// Useful in container mode
    		limit := cgroupMemLimit()
    		if limit > 0 {
    			// A valid value is found, return its 75%
    			available = (limit * 3) / 4
    			return
    		}
    	} // for all other platforms limits are based on virtual memory.
    
    	memStats, err := mem.VirtualMemory()
    	if err != nil {
    		return
    	}
    	// A valid value is available return its 75%
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 10K bytes
    - Viewed (0)
  3. internal/ioutil/hardlimitreader.go

    // This will ensure that at most n bytes are returned and EOF is reached.
    func HardLimitReader(r io.Reader, n int64) io.Reader { return &HardLimitedReader{r, n} }
    
    // A HardLimitedReader reads from R but limits the amount of
    // data returned to just N bytes. Each call to Read
    // updates N to reflect the new amount remaining.
    // Read returns EOF when N <= 0 or when the underlying R returns EOF.
    type HardLimitedReader struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 06 02:53:12 GMT 2023
    - 2K bytes
    - Viewed (0)
  4. cmd/routers.go

    	// prefix.
    	setBrowserRedirectMiddleware,
    	// Adds 'crossdomain.xml' policy middleware to serve legacy flash clients.
    	setCrossDomainPolicyMiddleware,
    	// Limits all body and header sizes to a maximum fixed limit
    	setRequestLimitMiddleware,
    	// Validate all the incoming requests.
    	setRequestValidityMiddleware,
    	// Add upload forwarding middleware for site replication
    	setUploadForwardingMiddleware,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  5. clause/limit_test.go

    			"SELECT * FROM `users` LIMIT ? OFFSET ?",
    			[]interface{}{limit10, 30},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Limit{Limit: &limit10, Offset: 20}, clause.Limit{Offset: 30}, clause.Limit{Offset: -10}},
    			"SELECT * FROM `users` LIMIT ?",
    			[]interface{}{limit10},
    		},
    		{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  6. cmd/metrics-v3-system-process.go

    	} else {
    		loadProcStatMetrics(ctx, stat, m)
    	}
    
    	io, err := p.IO()
    	if err != nil {
    		metricsLogIf(ctx, err)
    	} else {
    		loadProcIOMetrics(ctx, io, m)
    	}
    
    	l, err := p.Limits()
    	if err != nil {
    		metricsLogIf(ctx, err)
    	} else {
    		if l.OpenFiles > 0 {
    			m.Set(processFileDescriptorLimitTotal, float64(l.OpenFiles))
    		}
    
    		if l.AddressSpace > 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 16:07:23 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    func checkPathLength(pathName string) error {
    	// Apple OS X path length is limited to 1016
    	if runtime.GOOS == "darwin" && len(pathName) > 1016 {
    		return errFileNameTooLong
    	}
    
    	// Disallow more than 1024 characters on windows, there
    	// are no known name_max limits on Windows.
    	if runtime.GOOS == "windows" && len(pathName) > 1024 {
    		return errFileNameTooLong
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  8. cmd/server-rlimit.go

    		return err
    	}
    
    	// Set max memory limit as current memory limit.
    	if _, maxLimit, err = sys.GetMaxMemoryLimit(); err != nil {
    		return err
    	}
    
    	// set debug memory limit instead of GOMEMLIMIT env
    	_ = setDebugMemoryLimit(ctx)
    
    	err = sys.SetMaxMemoryLimit(maxLimit, maxLimit)
    	return err
    }
    
    func setDebugMemoryLimit(ctx *cli.Context) error {
    	if ctx == nil {
    		return nil
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. clause/limit.go

    // Limit limit clause
    type Limit struct {
    	Limit  *int
    	Offset int
    }
    
    // Name where clause name
    func (limit Limit) Name() string {
    	return "LIMIT"
    }
    
    // Build build where clause
    func (limit Limit) Build(builder Builder) {
    	if limit.Limit != nil && *limit.Limit >= 0 {
    		builder.WriteString("LIMIT ")
    		builder.AddVar(builder, *limit.Limit)
    	}
    	if limit.Offset > 0 {
    		if limit.Limit != nil && *limit.Limit >= 0 {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 942 bytes
    - Viewed (0)
  10. cmd/generic-handlers.go

    				usersize += length
    				break
    			}
    		}
    		if usersize > maxUserDataSize || size > maxHeaderSize {
    			return true
    		}
    	}
    	return false
    }
    
    // Limits body and header to specific allowed maximum limits as per S3/MinIO API requirements.
    func setRequestLimitMiddleware(h http.Handler) http.Handler {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
Back to top