Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
8c4fecdc
Commit
8c4fecdc
authored
Feb 14, 2012
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: fix windows build
R=rsc, bradfitz CC=golang-dev
https://golang.org/cl/5661055
parent
79599601
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
src/pkg/net/fd.go
src/pkg/net/fd.go
+4
-4
src/pkg/net/fd_windows.go
src/pkg/net/fd_windows.go
+2
-1
src/pkg/net/sendfile_windows.go
src/pkg/net/sendfile_windows.go
+1
-1
No files found.
src/pkg/net/fd.go
View file @
8c4fecdc
src/pkg/net/fd_windows.go
View file @
8c4fecdc
...
...
@@ -5,6 +5,7 @@
package
net
import
(
"errors"
"io"
"os"
"runtime"
...
...
@@ -518,7 +519,7 @@ func (o *acceptOp) Name() string {
func
(
fd
*
netFD
)
accept
(
toAddr
func
(
syscall
.
Sockaddr
)
Addr
)
(
*
netFD
,
error
)
{
if
err
:=
fd
.
incref
(
false
);
err
!=
nil
{
return
0
,
err
return
nil
,
err
}
defer
fd
.
decref
()
...
...
src/pkg/net/sendfile_windows.go
View file @
8c4fecdc
...
...
@@ -50,7 +50,7 @@ func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) {
c
.
wio
.
Lock
()
defer
c
.
wio
.
Unlock
()
if
err
:=
c
.
incref
();
err
!=
nil
{
if
err
:=
c
.
incref
(
false
);
err
!=
nil
{
return
0
,
err
,
true
}
defer
c
.
decref
()
...
...
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