blob: bb34aec0bba45622cfbdc60500aa4413ef18f9cb [file] [log] [blame]
David K. Bainbridge215e0242017-09-05 23:18:24 -07001// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package nettest
6
7const defaultMaxOpenFiles = 256
8
9// MaxOpenFiles returns the maximum number of open files for the
10// caller's process.
11func MaxOpenFiles() int { return maxOpenFiles() }