guerrilla_notunix.go 406 B

12345678910111213141516
  1. // +build !darwin
  2. // +build !dragonfly
  3. // +build !freebsd
  4. // +build !linux
  5. // +build !netbsd
  6. // +build !openbsd
  7. package guerrilla
  8. import "errors"
  9. // getFileLimit checks how many files we can open
  10. // Don't know how to get that info (yet?), so returns false information & error
  11. func getFileLimit() (uint64, error) {
  12. return 1000000, errors.New("syscall.RLIMIT_NOFILE not supported on your OS/platform")
  13. }