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
redis
Commits
565e139a
Unverified
Commit
565e139a
authored
Nov 28, 2017
by
Salvatore Sanfilippo
Committed by
GitHub
Nov 28, 2017
Browse files
Merge pull request #4200 from jeesyn/fix_typo
fix a typo
parents
b998e203
447b373f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/anet.c
View file @
565e139a
...
@@ -237,7 +237,7 @@ int anetResolveIP(char *err, char *host, char *ipbuf, size_t ipbuf_len) {
...
@@ -237,7 +237,7 @@ int anetResolveIP(char *err, char *host, char *ipbuf, size_t ipbuf_len) {
static
int
anetSetReuseAddr
(
char
*
err
,
int
fd
)
{
static
int
anetSetReuseAddr
(
char
*
err
,
int
fd
)
{
int
yes
=
1
;
int
yes
=
1
;
/* Make sure connection-intensive things like the redis benc
k
mark
/* Make sure connection-intensive things like the redis benc
h
mark
* will be able to close/open sockets a zillion of times */
* will be able to close/open sockets a zillion of times */
if
(
setsockopt
(
fd
,
SOL_SOCKET
,
SO_REUSEADDR
,
&
yes
,
sizeof
(
yes
))
==
-
1
)
{
if
(
setsockopt
(
fd
,
SOL_SOCKET
,
SO_REUSEADDR
,
&
yes
,
sizeof
(
yes
))
==
-
1
)
{
anetSetError
(
err
,
"setsockopt SO_REUSEADDR: %s"
,
strerror
(
errno
));
anetSetError
(
err
,
"setsockopt SO_REUSEADDR: %s"
,
strerror
(
errno
));
...
...
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