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
01507b9a
Commit
01507b9a
authored
Dec 20, 2011
by
Brad Fitzpatrick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: fix Windows build
R=golang-dev, r CC=golang-dev
https://golang.org/cl/5505048
parent
a41006f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
fd.go
src/pkg/net/fd.go
+0
-8
net.go
src/pkg/net/net.go
+8
-0
No files found.
src/pkg/net/fd.go
View file @
01507b9a
...
...
@@ -377,14 +377,6 @@ func (fd *netFD) CloseWrite() error {
return
fd
.
shutdown
(
syscall
.
SHUT_WR
)
}
type
timeoutError
struct
{}
func
(
e
*
timeoutError
)
Error
()
string
{
return
"i/o timeout"
}
func
(
e
*
timeoutError
)
Timeout
()
bool
{
return
true
}
func
(
e
*
timeoutError
)
Temporary
()
bool
{
return
true
}
var
errTimeout
error
=
&
timeoutError
{}
func
(
fd
*
netFD
)
Read
(
p
[]
byte
)
(
n
int
,
err
error
)
{
if
fd
==
nil
{
return
0
,
os
.
EINVAL
...
...
src/pkg/net/net.go
View file @
01507b9a
...
...
@@ -157,6 +157,14 @@ func (e *OpError) Timeout() bool {
return
ok
&&
t
.
Timeout
()
}
type
timeoutError
struct
{}
func
(
e
*
timeoutError
)
Error
()
string
{
return
"i/o timeout"
}
func
(
e
*
timeoutError
)
Timeout
()
bool
{
return
true
}
func
(
e
*
timeoutError
)
Temporary
()
bool
{
return
true
}
var
errTimeout
error
=
&
timeoutError
{}
type
AddrError
struct
{
Err
string
Addr
string
...
...
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