github.com/neatlab/neatio@v1.7.3-0.20220425043230-d903e92fcc75/utilities/common/fdlimit/fdlimit_windows.go (about)

     1  package fdlimit
     2  
     3  import "errors"
     4  
     5  func Raise(max uint64) error {
     6  
     7  	if max > 16384 {
     8  		return errors.New("file descriptor limit (16384) reached")
     9  	}
    10  	return nil
    11  }
    12  
    13  func Current() (int, error) {
    14  
    15  	return 16384, nil
    16  }
    17  
    18  func Maximum() (int, error) {
    19  	return Current()
    20  }