Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
b0e98718
Commit
b0e98718
authored
Apr 24, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: Handle return value of getsockopt
parent
3d4a4cb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/util.cc
src/util.cc
+4
-5
No files found.
src/util.cc
View file @
b0e98718
...
...
@@ -882,12 +882,11 @@ int create_nonblock_socket(int family) {
bool
check_socket_connected
(
int
fd
)
{
int
error
;
socklen_t
len
=
sizeof
(
error
);
if
(
getsockopt
(
fd
,
SOL_SOCKET
,
SO_ERROR
,
&
error
,
&
len
)
==
0
)
{
if
(
error
!=
0
)
{
return
false
;
}
if
(
getsockopt
(
fd
,
SOL_SOCKET
,
SO_ERROR
,
&
error
,
&
len
)
!=
0
)
{
return
false
;
}
return
true
;
return
error
==
0
;
}
bool
ipv6_numeric_addr
(
const
char
*
host
)
{
...
...
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