summaryrefslogtreecommitdiff
path: root/src/net/sock_stub.go
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2014-09-18 19:17:55 +0900
committerMikio Hara <mikioh.mikioh@gmail.com>2014-09-18 19:17:55 +0900
commitf96d407095d149b2ba930e4d91ba37e19377e8e3 (patch)
tree4380732a7448ca942a17db96d331186fa5c1d02f /src/net/sock_stub.go
parent84a8160421233e23fd32dd10742b32e0e23f8267 (diff)
downloadgo-f96d407095d149b2ba930e4d91ba37e19377e8e3.tar.gz
net: separate NaCl dependent placeholders from BSD's
To clarify the dependency of NaCl platform. LGTM=adg R=golang-codereviews, adg CC=golang-codereviews https://codereview.appspot.com/143830044
Diffstat (limited to 'src/net/sock_stub.go')
-rw-r--r--src/net/sock_stub.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/sock_stub.go b/src/net/sock_stub.go
new file mode 100644
index 000000000..ed6b08948
--- /dev/null
+++ b/src/net/sock_stub.go
@@ -0,0 +1,15 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build nacl solaris
+
+package net
+
+import "syscall"
+
+func maxListenerBacklog() int {
+ // TODO: Implement this
+ // NOTE: Never return a number bigger than 1<<16 - 1. See issue 5030.
+ return syscall.SOMAXCONN
+}