Logo
Explore Help
Sign In
perso/syncthing-arm
1
0
Fork 0
You've already forked syncthing-arm
Code Issues Pull Requests Releases Wiki Activity
syncthing-arm/lib/osutil/rlimit_windows.go

18 lines
404 B
Go
Raw Normal View History

Increase open file (fd) limit if possible This will decrease the risk of running out of file descriptors for the database and other bad things, which could otherwise potentially happen if we're serving lots of requests and scanning in parallel, etc. Windows doesn't have a per process open file limit like Unix so we don't need to worry about it there.
2015-08-15 15:20:58 +02:00
// Copyright (C) 2015 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
all: Update license url to https (ref #3976)
2017-02-09 07:52:18 +01:00
// You can obtain one at https://mozilla.org/MPL/2.0/.
Increase open file (fd) limit if possible This will decrease the risk of running out of file descriptors for the database and other bad things, which could otherwise potentially happen if we're serving lots of requests and scanning in parallel, etc. Windows doesn't have a per process open file limit like Unix so we don't need to worry about it there.
2015-08-15 15:20:58 +02:00
// +build windows
package osutil
import (
"errors"
)
func MaximizeOpenFileLimit() (int, error) {
return 0, errors.New("not relevant on Windows")
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 624ms Template repo/home: 12ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API