Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-reuseport
Commits
d718a07d
Commit
d718a07d
authored
Jan 19, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nits
parent
f08ef691
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
impl_unix.go
impl_unix.go
+1
-2
No files found.
impl_unix.go
View file @
d718a07d
...
...
@@ -13,8 +13,6 @@ import (
)
const
(
tcp4
=
52
// "4"
tcp6
=
54
// "6"
filePrefix
=
"port."
)
...
...
@@ -305,6 +303,7 @@ func listenUDP(netw, addr string) (c net.Conn, err error) {
return
c
,
err
}
// this is close to the connect() function inside stdlib/net
func
connect
(
fd
int
,
ra
syscall
.
Sockaddr
)
error
{
switch
err
:=
syscall
.
Connect
(
fd
,
ra
);
err
{
case
syscall
.
EINPROGRESS
,
syscall
.
EALREADY
,
syscall
.
EINTR
:
...
...
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