Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
f246ee43
Commit
f246ee43
authored
Jun 26, 2022
by
michael-grunder
Browse files
Whitespace, style
parent
94c1985b
Changes
1
Show whitespace changes
Inline
Side-by-side
net.c
View file @
f246ee43
...
...
@@ -278,15 +278,14 @@ int redisCheckConnectDone(redisContext *c, int *completed) {
return
REDIS_OK
;
}
int
error
=
errno
;
if
(
error
==
EINPROGRESS
)
{
if
(
error
==
EINPROGRESS
)
{
/* must check error to see if connect failed. Get the socket error */
int
fail
,
so_error
;
socklen_t
optlen
=
sizeof
(
so_error
);
fail
=
getsockopt
(
c
->
fd
,
SOL_SOCKET
,
SO_ERROR
,
&
so_error
,
&
optlen
);
if
(
fail
==
0
)
{
if
(
so_error
==
0
)
{
/* ocket is connected! */
/*
S
ocket is connected! */
*
completed
=
1
;
return
REDIS_OK
;
}
...
...
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