Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
76a1cb5a
Commit
76a1cb5a
authored
Feb 11, 2012
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: fix comment, make use of listenerBacklog
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/5653056
parent
0e3514ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
dial_test.go
src/pkg/net/dial_test.go
+3
-4
No files found.
src/pkg/net/dial_test.go
View file @
76a1cb5a
...
...
@@ -27,8 +27,7 @@ func TestDialTimeout(t *testing.T) {
errc
:=
make
(
chan
error
)
const
SOMAXCONN
=
0x80
// copied from syscall, but not always available
const
numConns
=
SOMAXCONN
+
10
numConns
:=
listenerBacklog
+
10
// TODO(bradfitz): It's hard to test this in a portable
// way. This is unforunate, but works for now.
...
...
@@ -54,8 +53,8 @@ func TestDialTimeout(t *testing.T) {
}()
default
:
// TODO(bradfitz):
// OpenBSD may have a reject route to 1
0/8.
// FreeBSD likely works, but is untested.
// OpenBSD may have a reject route to 1
27/8 except 127.0.0.1/32
//
by default.
FreeBSD likely works, but is untested.
t
.
Logf
(
"skipping test on %q; untested."
,
runtime
.
GOOS
)
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment