2016-07-22 20:15:38 +02:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
2012-04-25 06:26:12 +02:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2018-09-24 23:46:21 +02:00
|
|
|
// +build aix nacl js,wasm solaris
|
2015-01-15 01:27:56 +01:00
|
|
|
|
2012-04-25 06:26:12 +02:00
|
|
|
package net
|
|
|
|
|
2014-07-19 10:53:52 +02:00
|
|
|
import "syscall"
|
2012-04-25 06:26:12 +02:00
|
|
|
|
|
|
|
func maxListenerBacklog() int {
|
2014-07-19 10:53:52 +02:00
|
|
|
// TODO: Implement this
|
|
|
|
// NOTE: Never return a number bigger than 1<<16 - 1. See issue 5030.
|
2012-04-25 06:26:12 +02:00
|
|
|
return syscall.SOMAXCONN
|
|
|
|
}
|