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
f5454d50
"src/sds.c" did not exist on "ebb690ea9991cb63f81b4b38b55643823e48251b"
Commit
f5454d50
authored
May 05, 2019
by
Minun Dragonation
Browse files
fix bugs on socket timeout tv usec calculation
parent
4a94ce63
Changes
1
Hide whitespace changes
Inline
Side-by-side
sockcompat.c
View file @
f5454d50
...
@@ -197,7 +197,7 @@ int win32_getsockopt(SOCKET sockfd, int level, int optname, void *optval, sockle
...
@@ -197,7 +197,7 @@ int win32_getsockopt(SOCKET sockfd, int level, int optname, void *optval, sockle
socklen_t
dwlen
=
0
;
socklen_t
dwlen
=
0
;
ret
=
getsockopt
(
sockfd
,
level
,
optname
,
(
char
*
)
&
timeout
,
&
dwlen
);
ret
=
getsockopt
(
sockfd
,
level
,
optname
,
(
char
*
)
&
timeout
,
&
dwlen
);
tv
->
tv_sec
=
timeout
/
1000
;
tv
->
tv_sec
=
timeout
/
1000
;
tv
->
tv_usec
=
timeout
*
1000
;
tv
->
tv_usec
=
(
timeout
*
1000
)
%
1000000
;
}
else
{
}
else
{
ret
=
WSAEFAULT
;
ret
=
WSAEFAULT
;
}
}
...
...
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